stevenacoffman/golangci-lint-action-go
Go implementation of the golangci-lint GitHub Action
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | golangci-lint version (e.g. v2.3, v2.3.4, latest, or empty for auto-detect) | — | "" |
| version-file | Path to .golangci-lint-version or .tool-versions file | — | "" |
| install-mode | Installation mode: binary, goinstall, or none | — | binary |
| install-only | If true, install but do not run the linter | — | false |
| working-directory | Directory to run the linter in (empty = process working directory) | — | "" |
| github-token | GitHub token for API calls (PR diff, push diff) | — | ${{ github.token }} |
| verify | Run golangci-lint config verify before linting | — | true |
| only-new-issues | Pass diff-based --new-from-* flags to restrict output to new issues | — | false |
| args | Arbitrary flags forwarded verbatim to golangci-lint run | — | "" |
| skip-cache | Disable both cache restore and cache save | — | false |
| skip-save-cache | Disable cache save only (restore still happens) | — | false |
| cache-invalidation-interval | Rotate cache key every N days (0 or negative = unique key per run) | — | 7 |
| problem-matchers | If true, register the embedded problem-matcher JSON | — | false |
| debug | Comma-separated debug flags: cache, clean | — | "" |
| experimental | Comma-separated experimental flags: automatic-module-directories | — | "" |
Outputs
no outputs