fix(ci): use oras login before copying trivy-db
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
parent
787a75e218
commit
9f0b833293
7
.github/workflows/sync-3rdparty-images.yaml
vendored
7
.github/workflows/sync-3rdparty-images.yaml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user