1010 - ' v*'
1111
1212env :
13- COSIGN_VERSION : v2.5.3
14- HELM_VERSION : v3.18.4
13+ COSIGN_VERSION : v3.0.2
14+ HELM_VERSION : 4.0.1
1515
1616permissions :
1717 contents : read
@@ -28,22 +28,23 @@ jobs:
2828 image_name : ${{ steps.publish-ghcr.outputs.image_name }}
2929 steps :
3030 - name : Checkout repository
31- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
31+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3232
3333 - name : Prepare versions and chart name
3434 id : prepare
3535 run : |
3636 set -euo pipefail
3737 CHART_NAME="$(yq '.name' charts/*/Chart.yaml)"
38- CHART_VERSION="$(yq '.version' charts/*/Chart.yaml)"
38+ CHART_VERSION=$(echo ${{ github.ref_name }} | sed 's/v//g')
3939 {
4040 echo "chart_name=$CHART_NAME"
4141 echo "chart_version=$CHART_VERSION"
4242 } >> "$GITHUB_OUTPUT"
4343
4444 - name : Publish Chart to GHCR
4545 id : publish-ghcr
46- uses : linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@e619121ece4ca4b1d6c89ade032f26105505756d
46+ uses : >- # main
47+ linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@17e4144d7ba68f7c3e8c16eece5aed15fd7c2dc8
4748 with :
4849 name : ${{ steps.prepare.outputs.chart_name }}
4950 repository : ${{ github.repository }}/chart
@@ -53,12 +54,12 @@ jobs:
5354 registry_password : ${{ secrets.GITHUB_TOKEN }}
5455
5556 - name : Install Cosign
56- uses : sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
57+ uses : sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
5758 with :
5859 cosign-release : " ${{ env.COSIGN_VERSION }}"
5960
6061 - name : Login to GitHub
61- uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
62+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
6263 with :
6364 registry : ghcr.io
6465 username : ${{ github.actor }}
7879 actions : read
7980 id-token : write
8081 packages : write
82+ # Note, this action *cannot* be pinned to a ref: see the project's
83+ # explanation at "Referencing SLSA builders and generators" in their
84+ # README.
8185 uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 8286 with :
8387 image : ${{ needs.release-helm-chart.outputs.image_name }}
0 commit comments