Skip to content

Commit 2fe8f8f

Browse files
adamanciniclaude
andcommitted
fix helm registry login authentication method
Use license ID for both username and password instead of customer email for username, matching the authentication pattern used in other projects. Also properly derive customer email from branch name instead of hardcoding. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ea5c172 commit 2fe8f8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/wg-easy-pr-validation.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ jobs:
208208
- name: Create customer
209209
id: customer
210210
run: |
211-
task customer-create CUSTOMER_NAME="${{ needs.setup.outputs.branch-name }}" RELEASE_CHANNEL="${{ needs.setup.outputs.channel-name }}"
212-
# Extract customer email from the task - using default from customer-create task
213-
CUSTOMER_EMAIL="[email protected]"
211+
# Create customer and derive email from branch name
212+
CUSTOMER_NAME="${{ needs.setup.outputs.branch-name }}"
213+
task customer-create CUSTOMER_NAME="$CUSTOMER_NAME" RELEASE_CHANNEL="${{ needs.setup.outputs.channel-name }}"
214+
# Derive customer email from customer name (branch name)
215+
CUSTOMER_EMAIL="${CUSTOMER_NAME}@example.com"
214216
echo "customer-email=$CUSTOMER_EMAIL" >> $GITHUB_OUTPUT
215217
echo "Customer email: $CUSTOMER_EMAIL"
216218
timeout-minutes: 5
@@ -254,7 +256,7 @@ jobs:
254256

255257
- name: Helm registry login
256258
run: |
257-
helm registry login registry.replicated.com --username "${{ needs.create-customer-and-cluster.outputs.customer-email }}" --password "${{ needs.create-customer-and-cluster.outputs.license-id }}"
259+
helm registry login registry.replicated.com --username "${{ needs.create-customer-and-cluster.outputs.license-id }}" --password "${{ needs.create-customer-and-cluster.outputs.license-id }}"
258260
timeout-minutes: 5
259261

260262
- name: Helm install

0 commit comments

Comments
 (0)