Skip to content

Commit 8b1be88

Browse files
committed
ci: add zizmor github actions security analysis workflow
1 parent 3fb6402 commit 8b1be88

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

.github/workflows/code_coverage.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on: [push, pull_request]
22

33
name: Code Coverage
44

5+
permissions: {}
6+
57
jobs:
68
Codecov:
79
name: Code Coverage

.github/workflows/cont_integration.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on: [push, pull_request]
22

33
name: CI
44

5+
permissions: {}
6+
57
jobs:
68

79
prepare:

.github/workflows/cron-update-rust.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Update rust version
2+
3+
permissions: {}
4+
25
on:
36
schedule:
47
- cron: "0 0 15 * *" # At 00:00 on day-of-month 15.

.github/workflows/zizmor.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Zizmor Actions Analysis
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
zizmor:
11+
name: zizmor latest via cargo
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
# required for workflows in private repositories
16+
contents: read
17+
actions: read
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
23+
24+
- name: Rust Cache
25+
uses: Swatinem/[email protected]
26+
27+
- name: Install zizmor
28+
run: cargo install zizmor --locked
29+
30+
- name: Run zizmor 🌈
31+
run: zizmor --format sarif . > results.sarif
32+
env:
33+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Upload SARIF file
36+
uses: github/codeql-action/upload-sarif@v3
37+
with:
38+
sarif_file: results.sarif
39+
category: zizmor

0 commit comments

Comments
 (0)