diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 232ca05..ecb035c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,10 @@ jobs: id: version run: echo "value=commit-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Github org lowercase + id: org + run: echo "value=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -33,12 +37,12 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository }}:${{ steps.version.outputs.value }} + ghcr.io/${{ steps.org.outputs.value }}:${{ steps.version.outputs.value }} - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: "ghcr.io/${{ github.repository }}:${{ steps.version.outputs.value }}" + image-ref: "ghcr.io/${{ steps.org.outputs.value }}:${{ steps.version.outputs.value }}" format: "sarif" output: "trivy-results.sarif" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6523bd..5696e6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,10 @@ jobs: docker: runs-on: ubuntu-latest steps: + - name: Github org lowercase + id: org + run: echo "value=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -29,5 +33,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/${{ github.repository }}:${{ github.ref_name }} + ghcr.io/${{ steps.org.outputs.value }}:${{ github.ref_name }} \ No newline at end of file