Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This install version of zizmor is mutable.
We have to create a requirements file e.g. requirements-zizmor.txt:

zizmor==1.33.1 \
    --hash=sha256:<approved-wheel-sha256>

and update this line to:

"$RUNNER_TEMP/zizmor-venv/bin/python" -m pip install \
      --only-binary=:all: --no-deps --require-hashes \
      -r .github/workflows/requirements-zizmor.txt

Lastly, to get automated dependabot updates for this, inside dependabot.yml we have to add a config for pip:

- package-ecosystem: pip
  directory: /.github/workflows
  schedule:
    ... (similar to the existing configs like npm)

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 }}
10 changes: 10 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -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
Loading