imagescan_action
This commit is contained in:
@@ -14,12 +14,17 @@ env:
|
|||||||
user: tebarius
|
user: tebarius
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-image:
|
trivy_cimage_scan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: aquasec/trivy:latest
|
container: aquasec/trivy:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Scan image with trivy
|
- name: Scan image with trivy
|
||||||
run: |
|
run: |
|
||||||
trivy image --username ${{ env.user }} --password ${{ secrets.DOCKER_PULL_TOKEN }} --exit-code 1 \
|
trivy image \
|
||||||
|
--username ${{ env.user }} \
|
||||||
|
--password ${{ secrets.DOCKER_PULL_TOKEN }} \
|
||||||
|
--exit-code 1 \
|
||||||
--scanners vuln,misconfig,secret \
|
--scanners vuln,misconfig,secret \
|
||||||
|
--severity MEDIUM,HIGH,CRITICAL \
|
||||||
|
--ignore-unfixed \
|
||||||
${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }}
|
${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }}
|
||||||
|
|||||||
Reference in New Issue
Block a user