Skip to content

Commit b878738

Browse files
authored
upgrade to oras 1.0.0 and fix issue with 0 length config (aquasecurity#305)
1 parent 92eecd9 commit b878738

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cron.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ jobs:
5151

5252
- name: Install oras
5353
run: |
54-
# oras was rollbacked to v0.12.0, because now v0.13.0 (the latest version) contains bugs: https://github.com/oras-project/oras/issues/447
55-
curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_linux_amd64.tar.gz
56-
tar -xvf ./oras_0.12.0_linux_amd64.tar.gz
54+
# upgrade to ORAS 1.0.0
55+
curl -LO https://github.com/oras-project/oras/releases/download/v1.0.0/oras_1.0.0_linux_amd64.tar.gz
56+
tar -xvf ./oras_1.0.0_linux_amd64.tar.gz
5757
5858
- name: Upload assets to GHCR
5959
run: |
6060
./oras version
6161
tags=(latest ${{ env.VERSION }})
6262
for tag in ${tags[@]}; do
63-
./oras push ghcr.io/${{ github.repository }}:${tag} \
64-
--manifest-config /dev/null:application/vnd.aquasec.trivy.config.v1+json \
63+
./oras push --artifact-type application/vnd.aquasec.trivy.config.v1+json \
64+
ghcr.io/${{ github.repository }}:${tag} \
6565
db.tar.gz:application/vnd.aquasec.trivy.db.layer.v1.tar+gzip
6666
done

0 commit comments

Comments
 (0)