From 9f0b83329303002f3c702fbc37ec0c2ebbb1cc7d Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Thu, 12 Jan 2023 18:44:45 +0000 Subject: [PATCH] fix(ci): use oras login before copying trivy-db Signed-off-by: Andrei Aaron --- .github/workflows/sync-3rdparty-images.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/sync-3rdparty-images.yaml b/.github/workflows/sync-3rdparty-images.yaml index 96d43c2d..30f39d3a 100644 --- a/.github/workflows/sync-3rdparty-images.yaml +++ b/.github/workflows/sync-3rdparty-images.yaml @@ -36,12 +36,7 @@ jobs: name: 'trivy-db' runs-on: ubuntu-latest steps: - - name: Log in to GitHub Docker Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - name: Copy trivy-db using oras cli run: | + oras login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io oras copy ghcr.io/aquasecurity/trivy-db:2 ghcr.io/${{ github.repository_owner }}/trivy-db:2