Skip to content

feat(security): improve GHA security #6

feat(security): improve GHA security

feat(security): improve GHA security #6

Workflow file for this run

name: GitHub Actions Security Analysis
on:
push:
branches:
- "main"
paths:
- ".github/workflows/**"
pull_request:
branches:
- "main"
paths:
- ".github/workflows/**"
permissions: {}
jobs:
zizmor-pr:
name: Run zizmor (PR)
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
advanced-security: "false"
annotations: "true"
zizmor-push:
name: Run zizmor (push)
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2