Skip to content

Commit

Permalink
fix(trivy): update scanner from config to misconfig (#3376)
Browse files Browse the repository at this point in the history
The scanner `config` was deprecated and replaced by `misconfig`.

```
2024-02-13T08:04:44.128Z	WARN	'--scanner config' is deprecated. Use '--scanner misconfig' instead. See aquasecurity/trivy#5586 for the detail.
```
  • Loading branch information
pjungermann authored Feb 13, 2024
1 parent fca4fed commit e527f56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@
"mhutchie",
"midrule",
"miniprettier",
"misconfig",
"mkdir",
"mkdirs",
"mkdocs",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- New linters

- Fixes
- Trivy: use `misconfig` instead of the deprecated `config` scanner, updating the default arguments

- Doc
- Removed obsolete warning for semgrep as the issue has been fixed
Expand Down
4 changes: 2 additions & 2 deletions megalinter/descriptors/repository.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,14 @@ linters:
cli_lint_extra_args:
- fs
- --scanners
- vuln,config
- vuln,misconfig
- --exit-code
- "1"
cli_lint_extra_args_after:
- "."
test_folder: trivy
examples:
- "trivy fs --scanners vuln,config ."
- "trivy fs --scanners vuln,misconfig ."
install:
dockerfile:
- |
Expand Down

0 comments on commit e527f56

Please sign in to comment.