Skip to content

workflows: add zizmor GitHub Actions security scan #2

workflows: add zizmor GitHub Actions security scan

workflows: add zizmor GitHub Actions security scan #2

Workflow file for this run

---
name: "Zizmor GitHub Actions Analysis"
# yamllint disable-line rule:truthy
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
permissions: {}
# Specifies group name that stops previous workflows if the name matches
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
zizmor:
name: Analyze workflows with zizmor
runs-on: ubuntu-latest
permissions:
security-events: write # Required to upload SARIF results to the Security tab
actions: read # Required to read workflow information
contents: read # Required to checkout repository
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
inputs: .github/workflows/