Skip to content

Commit

Permalink
Change build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
TomacGG committed Sep 17, 2024
1 parent 8ba0885 commit 2a68604
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,31 @@ jobs:
push: true
tags: |
tomacgg/devops-security-app:latest
scan:
name: Scan
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Scout CVEs
uses: docker/[email protected]
with:
command: cves
image: tomacgg/devops-security-app:latest
# only-fixed: true
only-severities: critical,high
ignore-base: false
ignore-unchanged: false
write-comment: true
github-token: ${{ secrets. PERSONAL_ACCESS_TOKEN }}
exit-code: true
exit-on: vulnerability

test:
name: Test
needs: [ build ]
Expand Down

0 comments on commit 2a68604

Please sign in to comment.