Skip to content

Commit

Permalink
ci: add zizmor
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Dec 14, 2024
1 parent 263932e commit 9699627
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Zizmor

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- ".github/workflows/**"
push:
branches:
- main
- "renovate/**"
paths:
- ".github/workflows/**"

jobs:
zizmor:
name: zizmor
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false

- uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8
with:
tool: zizmor

- name: Run zizmor
run: zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3
with:
sarif_file: results.sarif
category: zizmor

0 comments on commit 9699627

Please sign in to comment.