Skip to content

Commit 5383fd9

Browse files
committed
Add Zizmor
1 parent 221d5b6 commit 5383fd9

3 files changed

Lines changed: 69 additions & 13 deletions

File tree

.github/workflows/c.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
permissions:
66
contents: read
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
build:
14+
name: Build
1015
runs-on: ${{ matrix.os }}
1116
strategy:
1217
matrix:
1318
os: [ubuntu-latest, macOS-latest]
1419

1520
steps:
16-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
21+
- name: Checkout repository
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
1726
- name: make
1827
run: make
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL scan"
1+
name: CodeQL scan
22

33
on:
44
push:
@@ -8,22 +8,31 @@ on:
88

99
permissions:
1010
contents: read
11-
security-events: write
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1215

1316
jobs:
1417
CodeQL-Build:
15-
18+
name: CodeQL Build
1619
runs-on: ubuntu-latest
1720

21+
permissions:
22+
contents: read
23+
security-events: write # required to upload SARIF results to the Security tab
24+
1825
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
26+
- name: Checkout repository
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
with:
29+
persist-credentials: false
2130

22-
- name: Initialize CodeQL
23-
uses: github/codeql-action/init@3b1a19a80ab047f35cbb237b5bd9bdc1e14f166c # v3
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
2433

25-
- name: Autobuild
26-
uses: github/codeql-action/autobuild@3b1a19a80ab047f35cbb237b5bd9bdc1e14f166c # v3
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
2736

28-
- name: Perform CodeQL Analysis
29-
uses: github/codeql-action/analyze@3b1a19a80ab047f35cbb237b5bd9bdc1e14f166c # v3
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0

.github/workflows/zizmor.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Zizmor
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/**'
7+
- '.github/actions/**'
8+
pull_request:
9+
paths:
10+
- '.github/workflows/**'
11+
- '.github/actions/**'
12+
schedule:
13+
- cron: '0 21 * * 6'
14+
15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
zizmor:
24+
name: Zizmor audit
25+
runs-on: ubuntu-latest
26+
27+
permissions:
28+
contents: read
29+
security-events: write # required to upload the SARIF report to the Security tab
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
with:
35+
persist-credentials: false
36+
37+
- name: Run zizmor
38+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6

0 commit comments

Comments
 (0)