analyse_workflows #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Analyzes GitHub workflow files for security and best practices using zizmor | |
name: analyse_workflows | |
on: | |
push: | |
paths: | |
- '.github/**' | |
schedule: | |
- cron: "1 0 1 * *" | |
jobs: | |
zizmor: | |
name: zizmor latest via Cargo | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
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@main | |
with: | |
sarif_file: results.sarif | |
category: zizmor | |
- name: Security review | |
run: | | |
echo "Security review complete, please check the results at" | |
echo "https://github.com/EppingForestPipeBand/EppingForestPipeBand.github.io/security/code-scanning" |