Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/helm-chart-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,15 @@ on:
permissions: {}
jobs:
helm-chart-release:
uses: hoverkraft-tech/ci-github-container/.github/workflows/helm-chart-release.yml@988ccc2b85dec5822e801d7bc0622cad7cc94870 # 4.1.0
uses: hoverkraft-tech/ci-github-container/.github/workflows/helm-chart-release.yml@d21c49f884d2ca8406bcab4bce9c44b29ce4a8ed # fix/helm-release-secret-username
permissions:
contents: read
id-token: write
packages: write
secrets:
# Optional publication username kept as a secret. Overrides the username input; used only in publication.
oci-registry-username: ""

# Read-only image pull credential for validation; defaults to its read-only GITHUB_TOKEN.
test-oci-registry-password: ""

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ name: Helm chart release
type: string
default: ""
secrets:
oci-registry-username:
description: Optional publication username kept as a secret. Overrides the username input; used only in publication.
required: false
test-oci-registry-password:
description: Read-only image pull credential for validation; defaults to its read-only GITHUB_TOKEN.
required: false
Expand Down Expand Up @@ -191,7 +194,7 @@ jobs:
archive-name: ${{ needs.validate.outputs.archive-name }}
checksum: ${{ needs.validate.outputs.checksum }}
oci-registry: ${{ inputs.oci-registry }}
oci-registry-username: ${{ inputs.oci-registry-username || github.repository_owner }}
oci-registry-username: ${{ secrets.oci-registry-username || inputs.oci-registry-username || github.repository_owner }}
oci-registry-password: ${{ secrets.oci-registry-password || github.token }}
oci-repository: ${{ inputs.oci-repository || format('{0}/charts', github.repository) }}
sign: ${{ inputs.sign }}
Loading