gitbyg4v/Golangci-lint
Official golangci-lint action with line-attached annotations for found issues, caching and parallel execution.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | The version of golangci-lint to use. When `install-mode` is: - `binary` (default): the value can be v1.2 or v1.2.3 or `latest` to use the latest version. - `goinstall`: the value can be v1.2.3, `latest`, or the hash of a commit. - `none`: the value is ignored. | no | — |
| install-mode | The mode to install golangci-lint. It can be 'binary', 'goinstall', or 'none'. | no | binary |
| working-directory | golangci-lint working directory, default is project root | no | — |
| github-token | the token is used for fetching patch of a pull request to show only new issues | no | ${{ github.token }} |
| verify | if set to true and the action verify the configuration file against the JSONSchema | no | true |
| only-new-issues | if set to true and the action runs on a pull request - the action outputs only newly found issues | no | false |
| skip-cache | if set to true then the all caching functionality will be complete disabled, takes precedence over all other caching options. | no | false |
| skip-save-cache | if set to true then the action will not save any caches, but it may still restore existing caches, subject to other options. | no | false |
| problem-matchers | Force the usage of the embedded problem matchers | no | false |
| args | golangci-lint command line arguments | no | "" |
| cache-invalidation-interval | Periodically invalidate a cache because a new code being added. (number of days) | no | 7 |
Outputs
no outputs