-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.06 KB
/
analyse_workflows.yml
File metadata and controls
41 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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"