0.1.11 ā€¢ Published 2 months ago

gh-actions-linter v0.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Github Actions Linter

CI version

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/slatify@v3.0.0

- 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 gh-actions-linter@v0.1.8

Also available as a Github Action

name: CI

on:
  push:
    branches: [main]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: validate github workflow files to have pinned versions
        uses: digitalservicebund/github-actions/github-actions-linter@33695c875c198153e136ed0b99e06962e7fee0af

Releasing

šŸ‘‰ release-it

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
0.1.11

2 months ago

0.1.10

7 months ago

0.1.9

7 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.5

2 years ago

0.1.4

2 years ago