Skip to content
Open
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
23 changes: 11 additions & 12 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,24 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# Minimal permissions for auditing
permissions:
contents: read
permissions: {}

jobs:
zizmor:
name: Run zizmor security audit
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
# Checkout repository without persisting credentials to reduce attack surface
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- name: Install zizmor
run: |
curl -sSL https://github.com/woodruffw/zizmor/releases/download/v1.24.1/zizmor-x86_64-unknown-linux-gnu.tar.gz | tar -xz
chmod +x zizmor
sudo mv zizmor /usr/local/bin/

- name: Run zizmor audit
run: zizmor --persona pedantic --min-severity low .github/workflows
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should also opt-out from Github Advance Security, since we want to fail the CI in case there are any zizmor findings, at least for now

inputs: .github/workflows
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the default path for inputs collection is ., we can remove this one

persona: pedantic
min-severity: low
Comment on lines +36 to +38
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If I got this input correctly, it acts like a filter for findings. Most likely we don't want to have any filters