File tree Expand file tree Collapse file tree 2 files changed +1
-129
lines changed
Expand file tree Collapse file tree 2 files changed +1
-129
lines changed Original file line number Diff line number Diff line change @@ -156,39 +156,4 @@ jobs:
156156 platforms : linux/amd64,linux/arm64
157157 build-args : |
158158 BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
159- VCS_REF=${{ github.sha }}
160-
161- # Phase 3: Security Scan
162- security-scan :
163- name : Security Scan VSCode Automation
164- runs-on : ubuntu-latest
165- needs : build-vscode-automation
166- if : github.event_name != 'pull_request'
167- permissions :
168- contents : read
169- packages : read
170- security-events : write
171-
172- steps :
173- - name : Checkout code
174- uses : actions/checkout@v4
175-
176- - name : Log in to Container Registry
177- uses : docker/login-action@v3
178- with :
179- registry : ${{ env.REGISTRY }}
180- username : ${{ github.actor }}
181- password : ${{ secrets.GITHUB_TOKEN }}
182-
183- - name : Run Trivy vulnerability scanner
184- uses : aquasecurity/trivy-action@master
185- with :
186- image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
187- format : ' sarif'
188- output : ' trivy-results-vscode-automation.sarif'
189-
190- - name : Upload Trivy scan results to GitHub Security tab
191- uses : github/codeql-action/upload-sarif@v3
192- if : always()
193- with :
194- sarif_file : ' trivy-results-vscode-automation.sarif'
159+ VCS_REF=${{ github.sha }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments