GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Registries Proxy: Support feeding a base64 encoded configuration by marcogario · Pull Request #2404 · github/codeql-action Conversation
|
| function getCredentials(): Credential[] { | ||
| const encodedCredentials = actionsUtil.getOptionalInput("registries_credentials"); | ||
| if (encodedCredentials !== undefined) { | ||
| const credentialsStr = Buffer.from(encodedCredentials, "base64").toString(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems like some extra hoops to go through for the workflow file to send base64 encoded credentials. Does it make more sense to accept non-encoded credentials and only base64 encode them in the action?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Indeed, there are some extra steps, but I think they are justified.
The proxy takes a JSON object as previously defined in registry_secrets. The problem is that Actions recommends not using structured data within secrets:
To help ensure that GitHub redacts your secret in logs, avoid using structured data as the values of secrets.
Therefore, we encode it as a single string to make scrubbing possible.
The underlying reason we need a struct is that (due to the integration with default setup) we need to provide a potentially arbitrary number of credentials, and we cannot easily know which ones/how many beforehand.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
7156568 to
a9c1d1c
Compare
a9c1d1c to
0b84d89
Compare
|
@aeisenberg this is ready for another review. I am also assigning @aibaars so he can shepherd this to completion in case there are issues to address. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Thanks. Looks great.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.