Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sign charts with digest #178

Draft
wants to merge 35 commits into
base: feat/runs-on-input
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6d3ac02
test: try digest retrival command
rdash99 Aug 21, 2024
98cb509
test: update digest retrival command
rdash99 Aug 21, 2024
fe7d57a
test: update digest retrival command
rdash99 Aug 21, 2024
5b89a57
test: update digest retrival command
rdash99 Aug 21, 2024
ba2c74d
test: update digest retrival command to use newer output syntax
rdash99 Aug 21, 2024
4949ad0
test: update digest retrival command
rdash99 Aug 21, 2024
dca8277
Merge branch 'feat/runs-on-input' into fix/sign-charts-with-digest
rdash99 Aug 27, 2024
2277068
test: update digest retrival command
rdash99 Aug 27, 2024
98329bd
test: update digest retrival command
rdash99 Aug 27, 2024
86f4c82
test: update digest retrival command to use yq
rdash99 Aug 27, 2024
3bb69fa
test: update digest retrival command to use yq
rdash99 Aug 27, 2024
f7dcf1e
test: update digest retrival command to use yq
rdash99 Aug 27, 2024
48809a1
test: update digest retrival command to use curl
rdash99 Aug 27, 2024
5e9fa50
test: update digest retrival command to use curl
rdash99 Aug 27, 2024
ccc355d
test: update digest retrival command to use curl
rdash99 Aug 27, 2024
4364bed
test: update digest retrival command to use curl
rdash99 Aug 28, 2024
4495f05
test: update digest retrival command to use curl
rdash99 Aug 28, 2024
124891d
test: update digest retrival command to use curl with the chart project
rdash99 Aug 28, 2024
a10470f
test: update digest retrival command to use curl getting token
rdash99 Aug 28, 2024
0c61da2
test: update digest retrival command to use curl getting token
rdash99 Aug 28, 2024
c8b8ae0
test: update digest retrival command to use curl getting token
rdash99 Aug 28, 2024
11f1caf
test: update digest retrival command to use curl getting token
rdash99 Aug 28, 2024
301381c
test: update digest retrival command to use curl
rdash99 Aug 29, 2024
199e771
test: update digest retrival command to use curl
rdash99 Aug 29, 2024
d319c13
test: update digest retrival command to use curl
rdash99 Aug 29, 2024
a2fc54f
test: update digest retrival command to use curl update url
rdash99 Aug 29, 2024
b277b1b
test: update digest retrival command to use curl update url
rdash99 Aug 29, 2024
6bb7489
test: update digest retrival command to use curl update url
rdash99 Aug 29, 2024
41c0a3e
test: update digest retrival command to use curl update url
rdash99 Aug 30, 2024
50c2b0c
test: update digest retrival command to use curl update url
rdash99 Aug 30, 2024
43e0cb9
Revert "test: update digest retrival command to use curl update url"
rdash99 Sep 2, 2024
03ef4f3
Revert "test: update digest retrival command to use curl update url"
rdash99 Sep 2, 2024
34224c0
test: update digest retrival command go back to helm
rdash99 Sep 3, 2024
fd084d3
test: update digest retrival command go back to helm
rdash99 Sep 3, 2024
1ab0ce7
test: update digest retrival command go back to helm
rdash99 Sep 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/actions/pr-chart/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,26 @@ runs:
helm package ${{ inputs.chart }} --version ${{ env.PR_COMMIT_TAG }}
helm push ${{ inputs.registry-repo }}-${{ env.PR_COMMIT_TAG }}.tgz oci://${{ env.CHART_PROJECT }}

- name: get digest
id: digest
if: steps.helm.outcome == 'success'
shell: bash
run: |
helm show chart ${{ inputs.registry-repo }}-${{ env.PR_COMMIT_TAG }}
curl -s -u ${{ inputs.registry-user }}:${{ inputs.registry-token }} "https://${{ inputs.registry }}/service/token?service=service=harbor-registry&scope=repository:${{ inputs.registry-repo }}:pull"

curl -s -H "Authorization: Bearer $TOKEN" "Accept: application/vnd.oci.image.manifest.v1+json" https://${{ inputs.registry }}/${{ env.CHART_PROJECT }}/manifests/${{ env.PR_TAG }}
digest=$(curl -s -H "Accept: application/vnd.oci.image.manifest.v1+json" https://${{ inputs.registry }}/${{ inputs.registry-repo }}/manifests/${{ env.PR_TAG }} | jq -r '.config.digest')
echo ${digest}
echo "digest=${digest}" >> "$GITHUB_OUTPUT"



- name: build success
if: steps.helm.outcome == 'success'
shell: bash
run: |
echo "${{steps.digest.outputs.digest}}"
echo "${SUMMARY}" >> "$GITHUB_STEP_SUMMARY"
env:
SUMMARY: |
Expand Down
Loading