Skip to content

Commit

Permalink
test: update digest retrival command to use curl
Browse files Browse the repository at this point in the history
  • Loading branch information
rdash99 committed Aug 29, 2024
1 parent 199e771 commit d319c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/pr-chart/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d319c13

Please sign in to comment.