Skip to content

Commit 498b7d8

Browse files
authored
feat: add chart signing (#173)
Signed-off-by: Bence Csati <[email protected]>
1 parent 9691991 commit 498b7d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: .github/workflows/artifacts.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
with:
5353
version: v3.12.0
5454

55+
- name: Set up Cosign
56+
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
57+
5558
- name: Set chart name
5659
id: chart-name
5760
run: echo "value=vault" >> "$GITHUB_OUTPUT"
@@ -87,6 +90,13 @@ jobs:
8790
helm package ${{ steps.chart-name.outputs.value }} --version ${{ steps.version.outputs.value }}
8891
echo "package=${{ steps.chart-name.outputs.value }}-${{ steps.version.outputs.value }}.tgz" >> "$GITHUB_OUTPUT"
8992
93+
- name: Sign chart with GitHub OIDC Token
94+
if: ${{ inputs.publish && github.repository_owner == 'bank-vaults' }} # Check if the workflow is called by the same GitHub organization
95+
env:
96+
PACKAGE: ${{ steps.build.outputs.package }}
97+
run: |
98+
cosign sign-blob --yes $PACKAGE
99+
90100
- name: Upload chart as artifact
91101
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
92102
with:

0 commit comments

Comments
 (0)