Sample workflows
Short workflows written for this site, each showing one problem the audit finds, and one that comes out clean. Audit any of them to see the report.
- Pull request tests with the repository's secrets
pull_request_target checks out the pull request's code and runs npm on it.
- Issue title pasted into a script
A labelling workflow puts github.event.issue.title straight into a run: script.
- Deploy command anyone can run
An issue_comment workflow deploys when a comment contains /deploy, without checking who wrote it.
- Auto-merge that trusts github.actor
Merges pull requests when github.actor is dependabot[bot].
- Release built from a shared cache
A tag-triggered npm publish restores the npm cache.
- Third-party actions by tag
pnpm, Docker and GitHub Pages actions referenced by tag.
- Action with a published vulnerability
tj-actions/changed-files@v35, a version an advisory lists as vulnerable.
- Every secret handed over
secrets: inherit on a reusable workflow call, and toJSON(secrets) in a step.
- Pull requests on a self-hosted runner
Pull request builds run on the team's own machine.
- Install script piped into the shell
A linter installed with curl | sh.
- A hardened test workflow
A test job with the usual protections. It comes out clean.