mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
36 lines
791 B
YAML
36 lines
791 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: "Run zizmor"
|
|
uses: zizmorcore/zizmor-action@f52a838cfabf134edcbaa7c8b3677dde20045018 # v0.1.1
|
|
with:
|
|
config-file: .github/zizmor.yml
|
|
sarif-upload: true
|
|
inputs: .github
|