Skip to content

Commit c439113

Browse files
authored
Fix/tracefoss 1096 Spring Boot 3 Upgrade (#61)
1 parent 0dd8515 commit c439113

File tree

60 files changed

+1575
-1588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1575
-1588
lines changed

.github/workflows/trivy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
uses: actions/checkout@v3
4141

4242
- name: Build an image from Dockerfile
43-
run: docker build -t docker.io${{ env.REGISTRY }}/${{ github.repository }}:${{ github.sha }} .
43+
run: docker build -t docker.io${{ env.REGISTRY }}/${{ github.repository }}:fe_${{ github.sha }} .
4444

4545
- name: Run Trivy vulnerability scanner
4646
uses: aquasecurity/trivy-action@9ab158e8597f3b310480b9a69402b419bc03dbd5
4747
with:
48-
image-ref: 'docker.io${{ env.REGISTRY }}/${{ github.repository }}:${{ github.sha }}'
48+
image-ref: 'docker.io${{ env.REGISTRY }}/${{ github.repository }}:fe_${{ github.sha }}'
4949
format: 'template'
5050
exit-code: "1"
5151
template: '@/contrib/sarif.tpl'
@@ -135,7 +135,7 @@ jobs:
135135
if: always()
136136
uses: aquasecurity/trivy-action@master
137137
with:
138-
image-ref: ${{ env.REGISTRY }}/${{ github.repository }}:${{needs.prepare-env.outputs.check_sha}}
138+
image-ref: ${{ env.REGISTRY }}/${{ github.repository }}:be_${{needs.prepare-env.outputs.check_sha}}
139139
trivyignores: "./.github/workflows/.trivyignore"
140140
format: "sarif"
141141
output: "trivy-results2.sarif"
Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,18 @@
11
name: "Veracode upload and scan"
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [ main ]
7+
paths:
8+
- 'backend/**'
69
schedule:
7-
# Once a day
10+
# Once a day 0 am
811
- cron: "0 0 * * *"
912
env:
1013
JAVA_VERSION: 17
1114

1215
jobs:
13-
analyze-frontend:
14-
runs-on: ubuntu-latest
15-
defaults:
16-
run:
17-
working-directory: frontend
18-
permissions:
19-
actions: read
20-
contents: read
21-
security-events: write
22-
23-
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v3
26-
with:
27-
repository: ''
28-
29-
- run: zip -r veracode-scan-target.zip ./
30-
31-
- name: Run Veracode Upload And Scan
32-
uses: veracode/[email protected]
33-
with:
34-
appname: "Traceability-Foss-Frontend"
35-
createprofile: false
36-
filepath: "./frontend/veracode-scan-target.zip"
37-
vid: '${{ secrets.VERACODE_API_ID || secrets.ORG_VERACODE_API_ID }}'
38-
vkey: '${{ secrets.VERACODE_API_KEY || secrets.ORG_VERACODE_API_KEY }}'
39-
4016
analyze-backend:
4117
runs-on: ubuntu-latest
4218
defaults:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Veracode upload and scan - Frontend"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- 'frontend/**'
9+
schedule:
10+
# Once a day 1 am
11+
- cron: "0 1 * * *"
12+
env:
13+
JAVA_VERSION: 17
14+
15+
jobs:
16+
analyze-frontend:
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: frontend
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
with:
30+
repository: ''
31+
32+
- run: zip -r veracode-scan-target.zip ./
33+
34+
- name: Run Veracode Upload And Scan
35+
uses: veracode/[email protected]
36+
with:
37+
appname: "Traceability-Foss-Frontend"
38+
createprofile: false
39+
filepath: "./frontend/veracode-scan-target.zip"
40+
vid: '${{ secrets.VERACODE_API_ID || secrets.ORG_VERACODE_API_ID }}'
41+
vkey: '${{ secrets.VERACODE_API_KEY || secrets.ORG_VERACODE_API_KEY }}'

backend/openapi/traceability-foss-backend.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)