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
29 changes: 29 additions & 0 deletions .github/workflows/scan.yml
Copy link
Member

Choose a reason for hiding this comment

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

Let's use a more specific name than just scan. It's too generic and can refer to just about anything.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
schedule:
# Daily
- cron: "23 7 * * *"
push:
paths:
- .github/workflows/*
pull_request:
paths:
- .github/workflows/*
Comment on lines +9 to +12
Copy link
Member

@webknjaz webknjaz Oct 24, 2025

Choose a reason for hiding this comment

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

Let's make this future-proof if the project ever starts using in-tree actions. Also, I'd still run it on PR merge every time, for faster feedback:

Suggested change
- .github/workflows/*
pull_request:
paths:
- .github/workflows/*
pull_request:
paths:
- .github/actions/*/action.yml
- .github/workflows/*.yml


permissions: {}

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
Comment on lines +16 to +29
Copy link
Member

Choose a reason for hiding this comment

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

@x1101 could you just use the reusable workflow instead of duplicating the job steps? As in this example: #2681 (comment)