@digitalservice4germany/github-actions-linter
v0.1.1
Published
Linting for GitHub Actions workflows
Downloads
10
Keywords
Readme
GitHub Actions Linter
Linting for GitHub Actions workflows:
- Detects referencing 3rd-party actions by mutable tags/references. The only actions allowed to be referenced in this way are actions created by GitHub itself.
# ❌ Bad
- name: Send status to Slack
uses: lazy-actions/[email protected]
- name: Send status to Slack
uses: lazy-actions/slatify@main
# ✅ Good
- name: Send status to Slack
uses: lazy-actions/slatify@c4847b8c84e3e8076fd3c42cc00517a10426ed65 # == v3.0.0
Usage
Lint workflow files in .github/workflows
:
npx --yes @digitalservice4germany/[email protected]
Releasing
Start a dry run to see what would happen:
npm run release minor -- --dry-run
Do a real release (publishes to npm):
npm run release minor