Skip to content
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

SONATYPE_CREDENTIAL_HOST unnecessarily redacted in github actions log #730

Closed
zarthross opened this issue Aug 5, 2024 · 8 comments
Closed

Comments

@zarthross
Copy link
Contributor

zarthross commented Aug 5, 2024

Not sure what can be done, but I was trying to figure out what resolver to add to use a snapshot build of sbt-typelevel and noticed that github automatically censored the resolver in the logs. Maybe moving it from a github action secret to a github action variable? Or possibly adding instructions to the readme? Though i feel fixing it in the logs is wise since that's the place you go to find the snapshot version.

image

https://github.com/typelevel/sbt-typelevel/actions/runs/10229951814/attempts/1#summary-28304287162

@armanbilge
Copy link
Member

Aha, this is annoying. Actually an admin should just remove this org-wide secret, we no longer use it. The original idea was to provide a quick way for an entire org to change from the legacy to s01 server without modifying every build.

to a github action variable

I wonder if these can be set globally. The secret was a bad hack ...

@zarthross
Copy link
Contributor Author

I'm pretty sure you can set an org wide variable: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/variables#creating-configuration-variables-for-an-organization

@rossabaker
Copy link
Member

Yes, org-wide environment variable is possible. I can find a reference to the secret in generated ci.yml -- is it going to break anything if we remove that?

@armanbilge
Copy link
Member

armanbilge commented Aug 5, 2024

I can find a reference to the secret in generated ci.yml -- is it going to break anything if we remove that?

It's not, because we've already updated all the builds. sbt-typelevel now uses the s01 host by default, it no longer needs to be explicitly configured.

@rossabaker
Copy link
Member

Okay, I just migrated the secret to an environment variable, org wide.

@armanbilge
Copy link
Member

armanbilge commented Aug 5, 2024

Thanks! Let's keep this issue open until we change sbt-typelevel to read this from the env instead of the secret, but Darren's immediate problem should be resolved.

@zarthross
Copy link
Contributor Author

We'll know for sure next time a release is cut or a PR is merged...

@zarthross
Copy link
Contributor Author

This appears to be fixed now. Thanks all!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants