Skip to content

Commit 266a4cd

Browse files
committed
ci(trivy): disable vulnerability scan on PRs
There is a risk with this approach to miss a new vulnerability being introduced by a PR. But in our case, it is much less likely than a random CVE popping up in existing dependencies at the wrong time, blocking a totally unrelated PR merge. And with our regular scheduled scan, we will catch all vulnerabilities spotted by Trivy soon enough (certainly way before I include the PR in a release).
1 parent 766c7c5 commit 266a4cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/super-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
LINTER_RULES_PATH: .
7070
DEFAULT_BRANCH: main
7171
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
72+
TRIVY_SCANNERS: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'vuln,misconfig,secret' || 'misconfig,secret'}}
7273
BIOME_CONFIG_PATH: .biome.json
7374
GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: .zizmor.yml
7475
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)