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 dceebd1 commit 4bcf19b
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ jobs:
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
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
Expand Down

0 comments on commit 4bcf19b

Please sign in to comment.