Skip to content

Commit

Permalink
Create container-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akmshasan authored Mar 9, 2024
1 parent c9a4116 commit fa54e51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/container-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Container Scan
on: [push]
jobs:
container-scan:
runs-on: ubuntu-latest
# needs: [ci]

steps:
- name : Checkout code
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ secrets.DOCKERHUB_USERNAME }}/fastapi-starter:latest'
format: 'table'
exit-code: '1'

0 comments on commit fa54e51

Please sign in to comment.