Skip to content

Commit 932fdab

Browse files
chore: update repo semaphore config
1 parent 1e46874 commit 932fdab

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.semaphore/semaphore.yml

Lines changed: 11 additions & 4 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
46+
--ignorefile .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
48+
--ignorefile .trivyignore --severity HIGH,LOW,MEDIUM target/components/packages
4349
- . cache-maven store
4450
epilogue:
4551
always:
@@ -56,14 +62,15 @@ blocks:
5662
jobs:
5763
- name: Release
5864
commands:
59-
- mvn -Dcloud -Pjenkins -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode -DaltDeploymentRepository=confluent-codeartifact-internal::default::https://confluent-519856050701.d.codeartifact.us-west-2.amazonaws.com/maven/maven-snapshots/
65+
- mvn -Dcloud -Pjenkins -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode
66+
-DaltDeploymentRepository=confluent-codeartifact-internal::default::https://confluent-519856050701.d.codeartifact.us-west-2.amazonaws.com/maven/maven-snapshots/
6067
-DrepositoryId=confluent-codeartifact-internal deploy -DskipTests
6168

6269
after_pipeline:
6370
task:
6471
agent:
6572
machine:
66-
type: s1-prod-ubuntu24-04-arm64-0
73+
type: s1-prod-ubuntu24-04-arm64-00
6774
jobs:
6875
- name: Metrics
6976
commands:

0 commit comments

Comments
 (0)