From 207fdaf8039f73958306374d2c3d0d534298baf2 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre <oliverw@matrix.org> Date: Wed, 19 Mar 2025 12:10:55 +0000 Subject: [PATCH 1/2] Add CI workflow to run Zizmor to check for GitHub Actions security issues --- .github/workflows/zizmor.yaml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/zizmor.yaml diff --git a/.github/workflows/zizmor.yaml b/.github/workflows/zizmor.yaml new file mode 100644 index 0000000000..500152b962 --- /dev/null +++ b/.github/workflows/zizmor.yaml @@ -0,0 +1,43 @@ +name: GitHub Actions security check (zizmor) + +on: + push: + branches: ["main"] + paths: + - .github/workflows/** + pull_request: + branches: ["**"] + paths: + - .github/workflows/** + +jobs: + zizmor: + name: zizmor latest via PyPI + runs-on: ubuntu-latest + permissions: + security-events: write + contents: read # only needed for private repos + actions: read # only needed for private repos + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v5 + + - name: Run zizmor + run: uvx zizmor --format sarif . > results.sarif + + + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: results.sarif + category: zizmor From 6031346d9a986b12d8a95372ec0ac504eb2b5a9a Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre <oliverw@matrix.org> Date: Wed, 19 Mar 2025 12:12:09 +0000 Subject: [PATCH 2/2] Newsfile Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org> --- changelog.d/18256.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/18256.misc diff --git a/changelog.d/18256.misc b/changelog.d/18256.misc new file mode 100644 index 0000000000..8fd798f05e --- /dev/null +++ b/changelog.d/18256.misc @@ -0,0 +1 @@ +Add Zizmor check in CI to check the CI configuration for security problems. \ No newline at end of file