step-security/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 v2.3, v2.3.4, or `latest` to use the latest version. - `goinstall`: the value can be v2.3.4, `latest`, or the hash of a commit. - `none`: the value is ignored. | no | — |
| version-file | Gets the version of golangci-lint to use from a file. The path must be relative to the root of the project, or the `working-directory` if defined. This parameter supports `.golangci-lint-version`, and `.tool-versions` files. Only works with `install-mode: binary` (the default). | no | — |
| install-mode | The mode to install golangci-lint. It can be 'binary', 'goinstall', or 'none'. | no | binary |
| install-only | Only install golangci-lint. It does not run golangci-lint. | no | false |
| working-directory | golangci-lint working directory. The default is the project root. | no | — |
| github-token | The token is used for fetching the patch of a pull request to show only new issues. | no | ${{ github.token }} |
| verify | If set to true, the action verifies 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 |
| args | golangci-lint command line arguments. | no | "" |
| skip-cache | If set to true, all caching functionality will be completely disabled. This takes precedence over all other caching options. | no | false |
| skip-save-cache | If set to true, the action will not save any caches, but it may still restore existing caches, subject to other options. | no | false |
| cache-invalidation-interval | Periodically invalidate a cache when new code is added (number of days). | no | 7 |
| problem-matchers | Force the usage of the embedded problem matchers. | no | false |
| debug | Debug options for the action. List of comma separated options, the values are `cache`, `clean`. example: "cache,clean" | no | "" |
| experimental | Experimental options for the action. List of comma separated options. | no | "" |
Outputs
no outputs