This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-12222-4e04fea272107a6716d5634c591d0d994ba1eed2 in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
commit 1fc135b5fb84f2a54985c956e719f4318046dea8 Author: Jeffrey Vo <[email protected]> AuthorDate: Fri Nov 13 03:21:37 2026 +0000 chore: run zizmor on main branch like codeql (#12222) - followup to https://github.com/apache/arrow-rs/pull/12199 i think i configured it wrong; it should be similar to codeql in how it runs. i guess on my fork it always ran on main branch so it worked, but here it runs only on merge queue if configured as part of `ci.yml` --- .github/workflows/ci.yml | 3 --- .github/workflows/dev.yml | 21 +++------------------ .github/workflows/zizmor.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11909a1acf..1744498bea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,9 +102,6 @@ jobs: dev: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'dev') - permissions: - security-events: write # for zizmor - contents: read uses: $/.github/workflows/dev.yml rust: diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index d8091c6825..a57976ed4d 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -8,24 +8,13 @@ name: dev on: workflow_call: +permissions: + contents: read + jobs: - zizmor: - name: Run zizmor - runs-on: ubuntu-slim - permissions: - security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. - steps: - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Run zizmor - uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1 license-headers: name: License headers runs-on: ubuntu-slim - permissions: - contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -40,8 +29,6 @@ jobs: prettier: name: Markdown format runs-on: ubuntu-slim - permissions: - contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -57,8 +44,6 @@ jobs: typos: name: Spell Check with Typos runs-on: ubuntu-slim - permissions: - contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Version fixed on purpose. It uses heuristics to detect typos, so upgrading diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000000..de7c4a9885 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership +# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements + +name: "Zizmor" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '16 4 * * 1' + +permissions: + contents: read + +jobs: + zizmor: + name: Run zizmor + runs-on: ubuntu-slim + permissions: + security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Run zizmor + uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
