Skip to content

Commit ac8d17c

Browse files
committed
cleanup remaining zizmor errors
1 parent 91746e3 commit ac8d17c

5 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
persist-credentials: false
2626

2727
- name: "Run analysis"
28-
uses: ossf/scorecard-action@v2.4.3
28+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a
2929
with:
3030
results_file: results.sarif
3131
results_format: sarif
@@ -47,7 +47,7 @@ jobs:
4747
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4848
# format to the repository Actions tab.
4949
- name: "Upload artifact"
50-
uses: actions/upload-artifact@v7
50+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
5151
with:
5252
name: SARIF file
5353
path: results.sarif
@@ -56,6 +56,6 @@ jobs:
5656
# Upload the results to GitHub's code scanning dashboard (optional).
5757
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5858
- name: "Upload to code-scanning"
59-
uses: github/codeql-action/upload-sarif@v4
59+
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e
6060
with:
6161
sarif_file: results.sarif

.github/workflows/test.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ jobs:
6262
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
6363
with:
6464
persist-credentials: false
65-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
66-
with:
67-
node-version: 22
6865
- name: Set up Python ${{ matrix.python-version }}
6966
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
7067
id: sp
@@ -142,9 +139,6 @@ jobs:
142139
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
143140
with:
144141
persist-credentials: false
145-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
146-
with:
147-
node-version: 22
148142
- name: Set up Python ${{ matrix.python-version }}
149143
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
150144
id: sp
@@ -225,9 +219,6 @@ jobs:
225219
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
226220
with:
227221
persist-credentials: false
228-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
229-
with:
230-
node-version: 22
231222
- name: Set up Python ${{ matrix.python-version }}
232223
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
233224
id: sp

.github/workflows/update_coc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
24+
with:
25+
persist-credentials: false
2426

2527
- name: Fetch CODE_OF_CONDUCT.md from django-commons
2628
run: |

.github/workflows/zizmor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ jobs:
4040
4141
- name: Run Zizmor analysis
4242
run: |
43-
zizmor --format sarif .github/workflows/ > results.sarif
43+
zizmor --format sarif .github/workflows/ > zizmor.sarif
4444
4545
- name: Upload analysis results
4646
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
4747
with:
4848
name: zizmor-results
49-
path: results.sarif
49+
path: zizmor.sarif
5050
retention-days: 7
5151

5252
- name: Upload to code-scanning
5353
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e
5454
with:
55-
sarif_file: results.sarif
55+
sarif_file: zizmor.sarif
5656

5757
- name: Fail on Findings
5858
run: |
5959
count="$(
6060
jq '([.runs[]? | (.results // [])[] | select(.level != "note")] | length) // 0' \
61-
results.sarif
61+
zizmor.sarif
6262
)"
6363
echo "Zizmor findings: $count"
6464
test "$count" -eq 0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ cython_debug/
159159
/render_static/tests/examples/static
160160
requirements.txt
161161
uv.lock
162+
zizmor.sarif

0 commit comments

Comments
 (0)