From 786fb2f84dcc40815818ef39c3ca39d64184940b Mon Sep 17 00:00:00 2001 From: d3xter666 Date: Fri, 4 Dec 2026 15:01:24 +0200 Subject: [PATCH] ci: Add pinned zizmor security scans --- .github/workflows/release-please.yml | 3 ++- .github/workflows/zizmor.yml | 38 ++++++++++++++++++++++++++++ .github/zizmor.yml | 10 ++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/zizmor.yml create mode 100644 .github/zizmor.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b1aeb823f0f..6e74bacd8ae 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -45,7 +45,7 @@ jobs: run: | set -ex gh auth setup-git - gh pr checkout ${{ fromJson(steps.release.outputs.pr).number }} + gh pr checkout "$RELEASE_PR_NUMBER" # Update peer dependency: Release Please doesn't handle circular peerDependencies # @ui5/project has peerDependency on @ui5/builder, and @ui5/builder has devDependency on @ui5/project @@ -66,6 +66,7 @@ jobs: git commit --amend --no-edit git push --force-with-lease env: + RELEASE_PR_NUMBER: ${{ fromJson(steps.release.outputs.pr).number }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-packages: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 00000000000..c993913c279 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,38 @@ +name: zizmor + +on: + pull_request: + push: + branches: + - main + schedule: + - cron: "15 4 * * *" + workflow_dispatch: + +permissions: + contents: read + +jobs: + zizmor: + name: zizmor + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Install zizmor + run: | + python3 -m venv "$RUNNER_TEMP/zizmor-venv" + "$RUNNER_TEMP/zizmor-venv/bin/python" -m pip install --only-binary=:all: --no-deps zizmor==1.33.1 + echo "$RUNNER_TEMP/zizmor-venv/bin" >> "$GITHUB_PATH" + + - name: Scan pull request offline + if: github.event_name == 'pull_request' + run: zizmor --offline --format=github . + + - name: Scan with online audits + if: github.event_name != 'pull_request' + run: zizmor --format=github . + env: + GH_TOKEN: ${{ github.token }} diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 00000000000..e37f45c0ff1 --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,10 @@ +rules: + dependabot-cooldown: + ignore: + # Preserve the existing three-day update policy for Actions and npm. + - dependabot.yml:10 + - dependabot.yml:24 + adhoc-packages: + ignore: + # Node 24 tests intentionally install npm 11 updates to work around overrides issues. + - test.yml:44