From 603c1a2489c71d9f0ebe40f94dee8b7dc5bb8ae3 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 14 Oct 2024 11:05:20 +0600 Subject: [PATCH] fix: use `./oras` --- .github/workflows/cron.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 086c738..a965dfb 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -61,7 +61,7 @@ jobs: - name: Upload assets to GHCR and ECR Public run: | lowercase_repo=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') - oras version + ./oras version # Define an array of registry base URLs registries=( @@ -72,7 +72,7 @@ jobs: # Loop through each registry and push the artifact for registry in "${registries[@]}"; do full_registry_url="${registry}/${lowercase_repo}" - oras push --artifact-type application/vnd.aquasec.trivy.config.v1+json \ + ./oras push --artifact-type application/vnd.aquasec.trivy.config.v1+json \ "${full_registry_url}:${DB_VERSION}" \ javadb.tar.gz:application/vnd.aquasec.trivy.javadb.layer.v1.tar+gzip