add pull image to trivy_image_scan.yml

This commit is contained in:
2026-02-15 11:24:33 +01:00
parent 5053791991
commit 246dd03eec

View File

@@ -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 \