Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 0666742

Browse files
committed
Add GitHub Actions workflow for security analysis with Zizmor
1 parent a145bcf commit 0666742

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,30 @@ on:
77

88
pull_request:
99

10+
permissions: {}
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1016
jobs:
1117
build:
1218
runs-on: ubuntu-latest
1319
name: Ruby ${{ matrix.ruby }}
20+
permissions:
21+
contents: read
1422
strategy:
1523
matrix:
1624
ruby:
1725
- '3.4'
1826
- '4.0'
1927

2028
steps:
21-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2230
with:
2331
persist-credentials: false
2432
- name: Set up Ruby
25-
uses: ruby/setup-ruby@v1
33+
uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771
2634
with:
2735
ruby-version: ${{ matrix.ruby }}
2836
bundler-cache: true

.github/workflows/zizmor.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
zizmor:
17+
name: zizmor
18+
runs-on: ubuntu-latest
19+
permissions:
20+
security-events: write # upload SARIF results
21+
contents: read # checkout repository
22+
actions: read # query workflow runs
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
26+
with:
27+
persist-credentials: false
28+
29+
- name: Run zizmor
30+
uses: zizmorcore/zizmor-action@6ef14ad7cd47dc49f8df59d6f8f6c1929af29568

0 commit comments

Comments
 (0)