mirror of
https://github.com/anchore/syft.git
synced 2026-04-03 21:30:37 +02:00
36 lines
883 B
YAML
36 lines
883 B
YAML
name: "Validate GitHub Actions"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '.github/actions/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '.github/actions/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
zizmor:
|
|
name: "Lint"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
security-events: write # for uploading SARIF results
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: "Run zizmor"
|
|
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
|
|
with:
|
|
# there is a pass/fail gate as a repo ruleset (if there is no ruleset configured then the action will pass by default)
|
|
advanced-security: true
|
|
inputs: .github
|