Skip to content

Commit 2560ffb

Browse files
committed
fix pin and add zimor action
1 parent 394d7ea commit 2560ffb

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
persist-credentials: false
4040

4141
- name: Setup Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
42+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4343
with:
4444
python-version: ${{ matrix.python-version }}
4545

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
persist-credentials: false
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
24+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2525
with:
2626
python-version: '3.x'
2727
- name: Install dependencies

‎.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 with zizmor
2+
3+
on:
4+
push:
5+
branches: [ main, 7.x, 8.x ]
6+
pull_request:
7+
branches: [ main, 7.x, 8.x ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
zizmor:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
# Needed to upload the results to the code-scanning dashboard.
18+
security-events: write
19+
steps:
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
21+
with:
22+
persist-credentials: false
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
25+
- name: Run zizmor
26+
id: zizmor
27+
run: uvx zizmor --format=sarif . > results.sarif
28+
continue-on-error: true
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Upload SARIF results
32+
if: always()
33+
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
34+
with:
35+
sarif_file: results.sarif
36+
category: zizmor
37+
- name: Fail if zizmor found problems
38+
if: steps.zizmor.outcome == 'failure'
39+
run: exit 1

0 commit comments

Comments
 (0)