Skip to content

fix(update-agent-skills): bound the total time spent describing skill updates #25

fix(update-agent-skills): bound the total time spent describing skill updates

fix(update-agent-skills): bound the total time spent describing skill updates #25

name: 🔍 Scan for Workflow Vulnerabilities
permissions: {}
on:
workflow_call:
### Required Workflow Triggers ###
pull_request:
merge_group:
##################################
jobs:
# A required workflow whose only job is skipped can remain unsatisfied.
# Classify every event in an unconditional, zero-permission job so merge
# groups complete green as a deliberate no-op while the scan stays skipped.
eligibility:
permissions: {}
timeout-minutes: 5
runs-on: ubuntu-latest
outputs:
scan: ${{ steps.classify.outputs.scan }}
steps:
- name: 🛡️ Harden runner
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: 🔎 Classify advisory scan event
id: classify
if: github.event_name != 'merge_group'
run: echo "scan=true" >> "$GITHUB_OUTPUT"
- name: ✅ Complete merge-group required-workflow run
id: no-op
if: steps.classify.outputs.scan != 'true'
run: >-
echo "::notice::The pull-request advisory scan already ran;
completing this merge-group workflow as a safe no-op."
zizmor:
needs: eligibility
if: needs.eligibility.outputs.scan == 'true'
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read # only needed for private repos
actions: read # only needed for private repos
steps:
- name: 🛡️ Harden runner
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: 📑 Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 🔍 Check for zizmor config
id: config
run: |
if [ -f "zizmor.yml" ]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: 🌈 Zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
config: ${{ steps.config.outputs.exists == 'true' && 'zizmor.yml' || '' }}