-
Couldn't load subscription status.
- Fork 737
Add Zizmor Scanning on push/pull request #3141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||||||
|
|
||||||||||||||||||
| 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 | ||||||||||||||||||
oraNod marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
| with: | ||||||||||||||||||
| persist-credentials: false | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Run zizmor 🌈 | ||||||||||||||||||
| uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0 | ||||||||||||||||||
|
Comment on lines
+16
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) |
||||||||||||||||||
There was a problem hiding this comment.
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.