add pull image to trivy_image_scan.yml
This commit is contained in:
@@ -22,6 +22,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: aquasec/trivy:latest
|
||||
steps:
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.registry_gitea }}
|
||||
username: ${{ env.user }}
|
||||
password: ${{ secrets.DOCKER_PULL_TOKEN }}
|
||||
|
||||
- name: Pull image
|
||||
run: |
|
||||
docker pull ${{ env.registry_gitea }}/${{ env.user }}/${{ env.image_name_gitea }}:${{ env.image_tag }}
|
||||
|
||||
- name: Scan image with trivy
|
||||
run: |
|
||||
trivy image \
|
||||
|
||||
Reference in New Issue
Block a user