Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(Trivy): Port .trivyignore to .trivyignore.yaml #769

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.