Skip to content

Commit 2f30393

Browse files
author
service-bot-app[bot]
committed
chore: update repo semaphore config
1 parent 1e46874 commit 2f30393

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.semaphore/semaphore.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@ blocks:
3232
dependencies: []
3333
run:
3434
# don't run the tests on non-functional changes...
35-
when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/']})"
35+
when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/'], default_branch: 'master'})"
3636
task:
3737
jobs:
3838
- name: Test
3939
commands:
4040
- . sem-pint
4141
- mvn -Dcloud -Pjenkins -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate
42-
- cve-scan
42+
- export TRIVY_DISABLE_VEX_NOTICE=true
43+
- trivy version
44+
- echo "Check go/connector-dev-vuln-remediation for fixing or suppressing vulnerabilities found by trivy"
45+
- trivy --skip-files "*.zip" rootfs --scanners vuln --db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db --ignore-unfixed --ignorefile
46+
.trivyignore --exit-code 1 --severity CRITICAL target/components/packages
47+
- trivy --skip-files "*.zip" rootfs --scanners vuln --db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db --ignore-unfixed --ignorefile
48+
.trivyignore --severity HIGH,LOW,MEDIUM target/components/packages
4349
- . cache-maven store
4450
epilogue:
4551
always:

0 commit comments

Comments
 (0)