From 246dd03eec78f44769fe131ee66f7e503e6179cd Mon Sep 17 00:00:00 2001 From: tebarius Date: Sun, 15 Feb 2026 11:24:33 +0100 Subject: [PATCH] add pull image to trivy_image_scan.yml --- .gitea/workflows/trivy_image_scan.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/trivy_image_scan.yml b/.gitea/workflows/trivy_image_scan.yml index 3390df7..41ce10d 100644 --- a/.gitea/workflows/trivy_image_scan.yml +++ b/.gitea/workflows/trivy_image_scan.yml @@ -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 \