Skip to content

817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0

1.8 KB
Raw Blame

API Reference: Securing GitHub Actions Workflows

Security Checks

Check Risk Severity
Unpinned actions (mutable tags) Supply chain attack via tag overwrite Medium
Missing permissions block Inherits overly broad defaults Medium
write-all permissions Excessive token scope High
Script injection in run steps Code execution via PR title/body High
pull_request_target trigger Fork code runs with base permissions High
Secrets in workflow logs Credential exposure Critical

Dangerous Expression Contexts

Context Risk
github.event.pull_request.title Attacker-controlled PR title
github.event.pull_request.body Attacker-controlled PR body
github.event.issue.title Attacker-controlled issue title
github.event.comment.body Attacker-controlled comment
github.head_ref Attacker-controlled branch name

SHA Pinning Format

Format Security
actions/checkout@v4 Insecure - mutable tag
actions/checkout@b4ffde65f... Secure - immutable SHA

Permission Scopes

Scope Values
contents read, write
actions read, write
deployments read, write
id-token write (for OIDC)
security-events write
pull-requests read, write

Python Libraries

Library Version Purpose
yaml PyYAML >=6.0 Parse workflow YAML
re stdlib Pattern matching
json stdlib Report output
pathlib stdlib File discovery

References