From d319c137c52aac249067b449fffec36ad76f61cd Mon Sep 17 00:00:00 2001 From: rdash99 Date: Thu, 29 Aug 2024 10:31:03 +0100 Subject: [PATCH] test: update digest retrival command to use curl --- .github/actions/pr-chart/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/pr-chart/action.yaml b/.github/actions/pr-chart/action.yaml index 16c4598f..e211db3a 100644 --- a/.github/actions/pr-chart/action.yaml +++ b/.github/actions/pr-chart/action.yaml @@ -108,7 +108,7 @@ runs: if: steps.helm.outcome == 'success' shell: bash run: | - TOKEN=$(curl -s -u ${{ inputs.registry-user }}:${{ inputs.registry-token }} "https://${{ inputs.registry }}/v2/token?service=${{ inputs.registry-project }}&scope=repository:${{ inputs.registry-repo }}:pull" | jq -r .token) + TOKEN=$(curl -s -u ${{ inputs.registry-user }}:${{ inputs.registry-token }} "https://${{ inputs.registry }}/v2/token?service=service=harbor-registry&scope=repository:${{ inputs.registry-repo }}:pull" | jq -r .token) curl -s -H "Authorization: Bearer $TOKEN" "Accept: application/vnd.oci.image.manifest.v1+json" https://${{ inputs.registry }}/v2/${{ env.CHART_PROJECT }}/manifests/${{ env.PR_TAG }} digest=$(curl -s -H "Accept: application/vnd.oci.image.manifest.v1+json" https://${{ inputs.registry }}/v2/${{ inputs.registry-repo }}/manifests/${{ env.PR_TAG }} | jq -r '.config.digest')