Key Findings to Look For
Insecure Secrets Management
- secrets, API keys, credentials hardcoded in files
Excessive Workflow Permissions
- permissions like
permissions: write-all
- or no
permissions: block defined at all
Secrets in Git Commit History
- secrets, API keys, credentials hardcoded in old commits (removed in latest commit)
- value still persists in commit history
Dependencies Are Not Pinned by Hash
- using mutable tags like
@v1, @latest when using external dependencies
- should use immutable tags with hash to pin it properly
Unrestricted Workflow Triggers
- workflows can be triggered by broad events (without scope or conditions)
- e.g.
pull_request, push
Branch Protection Not Enabled (Github)
- users can direct push, force push, delete without peer review
- main branches should be protected (main, master, production etc.)
No Dependency Tool Detected
- no tool to automate dependency update