mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
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
1 changed files with 1 additions and 6 deletions
7
.github/workflows/sync-3rdparty-images.yaml
vendored
7
.github/workflows/sync-3rdparty-images.yaml
vendored
|
@ -36,12 +36,7 @@ jobs:
|
||||||
name: 'trivy-db'
|
name: 'trivy-db'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Copy trivy-db using oras cli
|
||||||
run: |
|
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
|
oras copy ghcr.io/aquasecurity/trivy-db:2 ghcr.io/${{ github.repository_owner }}/trivy-db:2
|
||||||
|
|
Loading…
Reference in a new issue