Skip to content

Commit

Permalink
Create zizmor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredHatfield authored Dec 10, 2024
1 parent 98ec089 commit a21ff34
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches: ["main"]
paths:
- ".github/**"
pull_request:
branches: ["**"]
paths:
- ".github/**"
schedule:
- cron: "0 10 * * 6"

jobs:
zizmor:
name: zizmor latest via Cargo
runs-on: ubuntu-latest
permissions:
security-events: write
# required for workflows in private repositories
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4

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

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

0 comments on commit a21ff34

Please sign in to comment.