Skip to content

Commit 6212d9d

Browse files
committed
use GITHUB_TOKEN env
1 parent fd44029 commit 6212d9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/fatimage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
output: "${{ steps.manifest.outputs.image-name }}.sarif"
133133
# turn off secret scanning to speed things up
134134
env:
135-
TRIVY_DB_REPOSITORY: ghcr.io/azimuth-cloud/trivy-db:2
135+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136136

137137
- name: Upload Trivy scan results to GitHub Security tab
138138
uses: github/codeql-action/upload-sarif@v3
@@ -151,8 +151,8 @@ jobs:
151151
severity: 'CRITICAL'
152152
ignore-unfixed: true
153153
env:
154-
TRIVY_DB_REPOSITORY: ghcr.io/azimuth-cloud/trivy-db:2
155-
154+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155+
156156
- name: Delete new image if Trivy scan fails
157157
if: failure() && steps.packer_build.outcome == 'success' # Runs if the Trivy scan found crit vulnerabilities or failed
158158
run: |

0 commit comments

Comments
 (0)