-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error: Could Not Add Chart Repository - Wrong Credentials? #32
Comments
I don't believe those credentials are passed as basic authentication but rather to log into the registry itself. |
Sorry, I don't understand what you mean here. I have passed those credentials which are used for adding the repo itself, for what I can see in the error it uses to add the repo like |
you can see the error here https://github.com/Piwero/sandbox-github-actions/actions/runs/9160876947/job/25184511775#step:5:75, and trying to open https://testmuseum.piwero.com/index.yaml it requires basic authentication.
what software are you using? |
@nflaig just self hosted in a server, using traefik as ingress route. It works fine when running directly
isn't it? I can see trying to use those parameters here https://github.com/Piwero/sandbox-github-actions/actions/runs/9160876947/job/25184511775#step:5:68 |
Remove basic auth from traefik, or include basic authentication credentials in the URL
This is not an issue of this package but rather how you set up your server |
@nflaig My basic authentication isn't with Traefik but with chartmuseum. Does this plugin don't take into consideration basic auth from Chartmuseum? https://chartmuseum.com/docs/#basic-auth |
The username and password is used during semantic-release-helm/lib/verifyConditions.js Lines 108 to 115 in b1647ba
You can try pass these in |
this is likely not gonna work as would have to pass basic auth flags to all commands |
What are the credentials in the README of the repo used for? https://github.com/nflaig/semantic-release-helm?tab=readme-ov-file#environment-variables
used for these helm auth? or how they are used for? |
I just told you how the credentials are used with even a reference to the code, see #32 (comment) |
You might be able to pass basic auth credentials like this |
@nflaig Yes, I have tried and still getting same error
Bear on mind that *** it's github injecting the secret with |
yes, actually that it the only use case I had myself, I was using Harbor. Just remove basic auth and it will work.. |
Description:
I'm experiencing an issue when trying to use the plugin to upload new versions of my Helm chart to my self-hosted Chartmuseum. When running the action, I get the following error:
Repository: Piwero/sandbox-github-actions
Error Example: GitHub Actions Run
Steps to Reproduce:
Expected Behavior:
The Helm chart should be successfully uploaded to my self-hosted Chartmuseum.
Actual Behavior:
The upload process fails with the error:
Error: Could not add chart repository. Wrong credentials?
Secrets Added:
CM_REGISTRY
:https://testmuseum.piwero.com
REGISTRY_USERNAME
:testuser
REGISTRY_PASSWORD
:********
Additional Context:
REGISTRY_USERNAME
andREGISTRY_PASSWORD
) are correctly set in the GitHub Secrets.REGISTRY_PASSWORD
is the same as the user password for Chartmuseum.Feel free to play around with the GitHub Action. You can go to the sandbox repo and under actions, go to the "Release Helm Chart" action and run the workflow.
Please let me know if you need any further information to diagnose this issue. I can DM the password if needed for testing purposes.
Thank you
The text was updated successfully, but these errors were encountered: