feat: add option to enable/disable annotations

This commit is contained in:
Fernandez Ludovic
2024-05-04 01:36:48 +02:00
parent 2bff406277
commit aebff4bd9c
5 changed files with 53 additions and 27 deletions

View File

@ -163,6 +163,18 @@ with:
# ...
```
`annotations`: (optional) To enable/disable GitHub Action annotations.
If disabled (`false`), the output format(s) will follow the golangci-lint configuration file and use the same default as golangci-lint (i.e. `colored-line-number`).
https://golangci-lint.run/usage/configuration/#output-configuration
The default value is `true`.
```yml
uses: golangci/golangci-lint-action@v5
with:
annotations: false
# ...
```
`args`: (optional) golangci-lint command line arguments.
Note: By default, the `.golangci.yml` file should be at the root of the repository.
The location of the configuration file can be changed by using `--config=`