Skip to content

Commit d497b11

Browse files
committed
Add GH Actions security analysis workflow
1 parent 9e48340 commit d497b11

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: " GitHub Actions Security Analysis with Zizmor"
2+
3+
# The scheduled workflow runs every Sunday at 23:45 UTC.
4+
on:
5+
push:
6+
schedule:
7+
- cron: '45 23 * * 0'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
security-events: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
18+
- name: Setup Rust
19+
uses: actions-rust-lang/setup-rust-toolchain@v1
20+
- name: Get zizmor
21+
run: cargo install zizmor
22+
# https://github.com/woodruffw/zizmor
23+
- name: Run zizmor
24+
run: zizmor --format sarif . > results.sarif
25+
- name: Upload SARIF file
26+
uses: github/codeql-action/upload-sarif@v3
27+
with:
28+
sarif_file: results.sarif
29+
category: zizmor

0 commit comments

Comments
 (0)