aa06d68ca6
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Workflow security
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: [".github/**"]
|
|
pull_request:
|
|
paths: [".github/**"]
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
# The github.token is only used by zizmor's online audits (read-only API calls)
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
zizmor:
|
|
name: Audit workflows with zizmor
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⬇️ Check out Git repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: 🛡️ Run zizmor
|
|
uses: zizmorcore/zizmor-action@6599ee8b7a49aef6a770f63d261d214911a7ce02 # v0.6.0
|
|
with:
|
|
# Annotate the PR directly instead of uploading SARIF to the
|
|
# security tab, and fail the check on any finding
|
|
advanced-security: false
|
|
annotations: true
|
|
# Low-confidence findings (e.g. artipacked on workflows that never
|
|
# push) are too noisy to gate CI on
|
|
min-confidence: medium
|