Skip to content

Commit 856c54c

Browse files
committed
update zizmor workflow for repo
1 parent 09c73ef commit 856c54c

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,16 @@ permissions: {}
1010

1111
jobs:
1212
zizmor:
13-
name: zizmor latest via PyPI
1413
runs-on: ubuntu-latest
1514
permissions:
16-
security-events: write # needed by upload-sarif for all repositories
15+
security-events: write
16+
contents: read # only needed for private repos
17+
actions: read # only needed for private repos
1718
steps:
1819
- name: Checkout repository
1920
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2021
with:
2122
persist-credentials: false
2223

23-
- name: Install the latest version of uv
24-
uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
25-
2624
- name: Run zizmor 🌈
27-
# Run it for both this repo and the templated cookiecutter repo.
28-
run: uvx zizmor --format sarif . {{cookiecutter.project_slug}}/.github/workflows > results.sarif
29-
env:
30-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
32-
- name: Upload SARIF file
33-
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
34-
with:
35-
sarif_file: results.sarif
36-
category: zizmor
25+
uses: zizmorcore/zizmor-action@5ca5fc7a4779c5263a3ffa0e1f693009994446d1 # v0.1.2

0 commit comments

Comments
 (0)