diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0528e45..e90d94a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -62,18 +62,30 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
- security-events: write
steps:
- uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
+ with:
+ java-version: "17"
+ distribution: temurin
+ cache: maven
+ - name: Resolve Maven dependencies for Trivy
+ working-directory: backend
+ run: mvn --batch-mode dependency:resolve
- name: Trivy filesystem gate
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
scan-type: fs
scan-ref: .
+ scanners: vuln,secret
+ skip-dirs: frontend/node_modules,backend/target,frontend/dist,frontend/coverage
+ cache-dir: /tmp/trivy-cache
+ timeout: 10m
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: "1"
- name: Gitleaks current tree secret scan
+ if: always()
run: docker run --rm -v "$PWD:/repo" zricethezav/gitleaks:v8.30.1 detect --source=/repo --no-git --redact --verbose
docker-demo-smoke:
diff --git a/backend/pom.xml b/backend/pom.xml
index 1d46771..3f081d5 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.2.0
+ 3.5.14
com.codesage
@@ -16,6 +16,10 @@
17
1.18.42
+ 4.1.135.Final
+ 42.7.11
+ 1.21.4
+ 10.1.55
@@ -106,7 +110,7 @@
org.testcontainers
testcontainers
- 1.19.3
+ ${testcontainers.version}
test
@@ -117,13 +121,13 @@
org.testcontainers
postgresql
- 1.19.3
+ ${testcontainers.version}
test
org.testcontainers
rabbitmq
- 1.19.3
+ ${testcontainers.version}
test