Skip to content

GitHub Actions Security Analysis with Zizmor #14

GitHub Actions Security Analysis with Zizmor

GitHub Actions Security Analysis with Zizmor #14

name: " GitHub Actions Security Analysis with Zizmor"
# The scheduled workflow runs every Sunday at 23:25 UTC.
on:
push:
schedule:
- cron: '25 23 * * 0'
# On demand:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
- 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@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
with:
sarif_file: results.sarif
category: zizmor