Skip to content

Commit

Permalink
ci(cron): add ASzc/change-string-case-action@v6
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Mar 6, 2024
1 parent 37e4c01 commit dd71b0a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,17 @@ jobs:
username: ${{ env.GH_USER }}
password: ${{ secrets.GITHUB_TOKEN }}

# `oras push` fails if repository contains uppercase characters
# required for testing in forks
- name: GH repo to lower case
id: github-repo-lower-case
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

- name: Upload assets to GHCR
run: |
oras version
oras push --artifact-type application/vnd.aquasec.trivy.config.v1+json \
ghcr.io/${{ github.repository }}:${DB_VERSION} \
ghcr.io/${{ steps.github-repo-lower-case.outputs.lowercase }}/trivy-java-db:${DB_VERSION} \
javadb.tar.gz:application/vnd.aquasec.trivy.javadb.layer.v1.tar+gzip

0 comments on commit dd71b0a

Please sign in to comment.