Skip to content

Commit d7618b0

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 b736e79 commit d7618b0

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
@@ -70,6 +70,7 @@ jobs:
7070
DEFAULT_BRANCH: main
7171
FILTER_REGEX_EXCLUDE: "(gradlew|gradlew\\.bat|gradle/.*|mvnw|mvnw\\.cmd|\\.m2/.*|\\.mvn/.*)$"
7272
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
73+
TRIVY_SCANNERS: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'vuln,misconfig,secret' || 'misconfig,secret'}}
7374
BIOME_CONFIG_PATH: .biome.json
7475
GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: .zizmor.yml
7576
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)