Skip to content

Commit d0f9a2d

Browse files
Updating dockerfile
1 parent 999d257 commit d0f9a2d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/security.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ jobs:
1818
- name: Build the Docker image
1919
run: docker build . --file ./3.12/Dockerfile --tag serverless-python:${{ steps.vars.outputs.docker_tag }}
2020

21-
- name: Scan with Phonito Security
22-
uses: phonito/phonito-scanner-action@master
21+
- name: Run Trivy vulnerability scanner
22+
uses: aquasecurity/trivy-action@master
2323
with:
24-
image: serverless-python:${{ steps.vars.outputs.docker_tag }}
25-
phonito-token: ${{ secrets.PHONITO_TOKEN }}
26-
fail-level: HIGH
24+
image-ref: serverless-python:${{ steps.vars.outputs.docker_tag }}
25+
format: 'sarif'
26+
output: 'trivy-results.sarif'
27+
28+
- name: Upload Trivy scan results to GitHub Security tab
29+
uses: github/codeql-action/upload-sarif@v2
30+
if: always()
31+
with:
32+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)