@@ -28,14 +28,14 @@ jobs:
28
28
-name :Checkout
29
29
uses :actions/checkout@v4
30
30
31
+ -name :Setup Go
32
+ uses :./.github/actions/setup-go
33
+
31
34
-name :Initialize CodeQL
32
35
uses :github/codeql-action/init@v3
33
36
with :
34
37
languages :go, javascript
35
38
36
- -name :Setup Go
37
- uses :./.github/actions/setup-go
38
-
39
39
# Workaround to prevent CodeQL from building the dashboard.
40
40
-name :Remove Makefile
41
41
run :|
@@ -113,14 +113,6 @@ jobs:
113
113
make -j "$image_job"
114
114
echo "image=$(cat "$image_job")" >> $GITHUB_OUTPUT
115
115
116
- -name :Run Prisma Cloud image scan
117
- uses :PaloAltoNetworks/prisma-cloud-scan@v1
118
- with :
119
- pcc_console_url :${{ secrets.PRISMA_CLOUD_URL }}
120
- pcc_user :${{ secrets.PRISMA_CLOUD_ACCESS_KEY }}
121
- pcc_pass :${{ secrets.PRISMA_CLOUD_SECRET_KEY }}
122
- image_name :${{ steps.build.outputs.image }}
123
-
124
116
-name :Run Trivy vulnerability scanner
125
117
uses :aquasecurity/trivy-action@84384bd6e777ef152729993b8145ea352e9dd3ef
126
118
with :
@@ -142,6 +134,16 @@ jobs:
142
134
path :trivy-results.sarif
143
135
retention-days :7
144
136
137
+ # Prisma cloud scan runs last because it fails the entire job if it
138
+ # detects vulnerabilities. :|
139
+ -name :Run Prisma Cloud image scan
140
+ uses :PaloAltoNetworks/prisma-cloud-scan@v1
141
+ with :
142
+ pcc_console_url :${{ secrets.PRISMA_CLOUD_URL }}
143
+ pcc_user :${{ secrets.PRISMA_CLOUD_ACCESS_KEY }}
144
+ pcc_pass :${{ secrets.PRISMA_CLOUD_SECRET_KEY }}
145
+ image_name :${{ steps.build.outputs.image }}
146
+
145
147
-name :Send Slack notification on failure
146
148
if :${{ failure() }}
147
149
run :|