Skip to content

Commit c74e2ca

Browse files
authored
Merge pull request #519 from HastD/zizmor
ci: add Zizmor, apply security recommendations
2 parents 32adeec + 3c897de commit c74e2ca

File tree

6 files changed

+64
-2
lines changed

6 files changed

+64
-2
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ updates:
2020
schedule:
2121
interval: weekly
2222
open-pull-requests-limit: 10
23+
cooldown:
24+
default-days: 7
2325
- package-ecosystem: "github-actions"
2426
directory: "/"
2527
schedule:
2628
interval: "weekly"
2729
open-pull-requests-limit: 10
30+
cooldown:
31+
default-days: 7

.github/workflows/auto-publish-crates-upon-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ on:
33
release:
44
types: [published]
55

6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
613
jobs:
714
publish-automatically:
15+
name: Publish crates
816
runs-on: ubuntu-latest
917
permissions:
10-
contents: read
11-
id-token: write
18+
id-token: write # needed to get OpenID Connect token for authentication
1219

1320
steps:
1421
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

.github/workflows/conformance.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ on: [workflow_dispatch]
22

33
name: Conformance Suite
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
conformance:
14+
name: Check sigstore conformance
715
runs-on: ubuntu-latest
816
steps:
917
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

.github/workflows/security-audit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ on:
99

1010
permissions: {}
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
audit:
18+
name: Audit for vulnerable crates
1419
permissions:
1520
checks: write # for rustsec/audit-check to create check
1621
contents: read # for actions/checkout to fetch code

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ on: [push, pull_request]
22

33
name: Continuous integration
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
check:
714
name: Check features

.github/workflows/zizmor.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'zizmor: GitHub Actions Security Analysis'
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
zizmor:
18+
name: Zizmor
19+
runs-on: ubuntu-24.04
20+
permissions:
21+
security-events: write # needed to create vulnerability alerts
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run zizmor 🌈
29+
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
30+
with:
31+
persona: pedantic

0 commit comments

Comments
 (0)