File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,10 @@ jobs:
1010 - name : Build Docker image
1111 run : |
1212 docker build -t my-docker-repo .
13- - name : Login to Docker Hub
14- uses : docker/login -action@v3
13+ - name : Run Trivy Scan
14+ uses : aquasecurity/trivy -action@master
1515 with :
16- username : ${{ secrets.DOCKERHUB_USERNAME }}
17- password : ${{ secrets.DOCKERHUB_TOKEN }}
18- - name : Set up Docker Buildx
19- uses : docker/setup-buildx-action@v3
20- - name : Build and push
21- uses : docker/build-push-action@v5
22- with :
23- context : .
24- file : ./Dockerfile
25- push : true
26- tags : ${{ secrets.DOCKERHUB_USERNAME }}/pythonapp:latest
16+ image-ref : ' my-docker-repo:latest'
17+ format : ' table'
18+ exit-code : 1 # Fails the build if vulnerabilities are found
19+ severity : ' CRITICAL,HIGH'
You can’t perform that action at this time.
0 commit comments