Skip to content

Commit

Permalink
ci(Trivy): Port .trivyignore to .trivyignore.yaml
Browse files Browse the repository at this point in the history
Use the more expressive YAML config format recently introduced in
v0.45.0.
  • Loading branch information
Kurt-von-Laven committed Dec 22, 2023
1 parent e481e63 commit 901ceca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Dockerfiles
ignorefile
Laven
npmcli
npmpackagejsonlintignore
trivy
trivyignore
1 change: 1 addition & 0 deletions .mega-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
EXTENDS: https://raw.githubusercontent.com/ScribeMD/.github/0.14.15/.github/base.mega-linter.yaml
JAVASCRIPT_ES_CLI_EXECUTABLE: [node, .yarn/releases/yarn-4.0.2.cjs, run, eslint]
# Work around https://github.com/oxsecurity/megalinter/issues/2500.
REPOSITORY_TRIVY_ARGUMENTS: --ignorefile .trivyignore.yaml
SPELL_CSPELL_PRE_COMMANDS:
- command: npm install @cspell/[email protected]
continue_if_failed: false
Expand Down
2 changes: 0 additions & 2 deletions .trivyignore

This file was deleted.

11 changes: 11 additions & 0 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
misconfigurations:
- id: AVD-DS-0002
paths:
- Dockerfile
- Dockerfile.windows
statement: Dockerfiles only used for testing, so it's okay that user is root.
- id: AVD-DS-0026
paths:
- Dockerfile
- Dockerfile.windows
statement: Dockerfiles only used for testing, so health check isn't needed.

0 comments on commit 901ceca

Please sign in to comment.