Skip to content

Commit aa4a4d4

Browse files
committed
ci: add zizmor
1 parent 96a1840 commit aa4a4d4

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
26-
- uses: crate-ci/typos@master
26+
- uses: crate-ci/typos@7bc041cbb7ca9167c9e0e4ccbb26f48eb0f9d4e0 # v1.30.2
2727
with:
2828
files: .
2929

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
repository: oxc-project/oxc
3030
ref: main
3131
path: oxc
32+
persist-credentials: false
3233

3334
- name: Install Tools
3435
uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # v2.49.27

.github/workflows/zizmor.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
paths:
8+
- ".github/workflows/**"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- ".github/workflows/**"
14+
15+
permissions: {}
16+
17+
jobs:
18+
zizmor:
19+
name: zizmor
20+
runs-on: ubuntu-latest
21+
permissions:
22+
security-events: write
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
27+
28+
- uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # v2.49.27
29+
with:
30+
tool: zizmor
31+
32+
- run: zizmor --format sarif . > results.sarif
33+
env:
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
37+
with:
38+
sarif_file: results.sarif
39+
category: zizmor

0 commit comments

Comments
 (0)