Agent skill
security-scanning-workflows
Comprehensive security scanning examples with SAST (CodeQL), dependency scanning, container vulnerability detection (Trivy), and SARIF upload to GitHub Security tab.
Install this agent skill to your Project
npx add-skill https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/secure/skills/security-scanning-workflows
SKILL.md
Security Scanning Workflows
When to Use This Skill
Copy-paste ready security scanning workflow templates with comprehensive coverage. Each example demonstrates SAST with CodeQL, dependency vulnerability detection, container image scanning with Trivy, and SARIF upload to GitHub Security tab for centralized visibility.
Complete Security Patterns
These workflows integrate all security scanning patterns: SHA-pinned actions, minimal GITHUB_TOKEN permissions (
security-events: writefor SARIF upload), automated scanning on every PR and push, SARIF result aggregation in GitHub Security tab, and security gates that block merges on critical findings.
Implementation
See the full implementation guide in the source documentation.
Key Principles
Every security scanning workflow in this guide implements these controls:
- SAST Integration: Static analysis with CodeQL to detect code-level vulnerabilities
- Dependency Scanning: Automated vulnerability detection in dependencies with severity-based gates
- Container Scanning: Image vulnerability scanning with Trivy before deployment
- SARIF Upload: Centralized findings in GitHub Security tab for audit and tracking
- Security Gates: Block merges on critical/high severity findings
- Minimal Permissions:
security-events: writescoped to scanning jobs only - Scan All Changes: Automated scanning on every PR and main branch push
Full Reference
See reference.md for complete documentation.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
github-token-permissions-overview
Understanding GITHUB_TOKEN scope, default permissions, and implementing least-privilege principle for GitHub Actions workflows.
secure
Find and fix security issues before they become incidents. Vulnerability scanning, SBOM generation, supply chain security, and secure authentication workflows.
complete-workflow-examples
Copy-paste hardened CI/CD workflows with SHA-pinned actions, minimal GITHUB_TOKEN permissions, OIDC authentication, and comprehensive security scanning for GitHub Actions.
ephemeral-runner-patterns
Disposable runner patterns for GitHub Actions. Container-based, VM-based, and ARC deployment strategies with complete state isolation between jobs.
action-pinning-overview
Why pinning GitHub Actions to SHA-256 commits matters for supply chain security. Attack vectors from unpinned actions and comparison of tag vs SHA pinning.
github-actions-security-patterns-hub
Complete security patterns for GitHub Actions covering action pinning, GITHUB_TOKEN permissions, third-party action risks, secret management, and runner security.
Didn't find tool you were looking for?