From 910b658499ef8814c90954c3068737d8a37b8585 Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Sun, 27 Oct 2024 15:19:21 +0900 Subject: [PATCH] fix(ci): Fix ghcr push error (#189) --- .github/workflows/update-trivy-cache.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/update-trivy-cache.yaml b/.github/workflows/update-trivy-cache.yaml index bf41e5b..b35b7ac 100644 --- a/.github/workflows/update-trivy-cache.yaml +++ b/.github/workflows/update-trivy-cache.yaml @@ -18,6 +18,13 @@ jobs: id: date run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Download and extract the vulnerability DB run: | mkdir -p $GITHUB_WORKSPACE/.cache/trivy/db