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 — bake: hasGitAuthTokenSecret func by crazy-max · Pull Request #550 · docker/actions-toolkit Conversation
|
| public static hasGitAuthTokenSecret(secrets: string[]): boolean { | |
| for (const secret of secrets) { | |
| if (secret.startsWith('GIT_AUTH_TOKEN=')) { | |
| return true; | |
| } | |
| } | |
| return false; | |
| } |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: CrazyMax <[email protected]>
| secretEntry.src = value; | ||
| break; | ||
| case 'env': | ||
| secretEntry.env = value; |
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.
This change is an oversight and fixes an issue when parsing secrets to be aligned with buildx logic: https://github.com/docker/buildx/blob/16edf5d4aa76ef9978c06889d66249aeab5729fe/util/buildflags/secrets.go#L106
Also add tests to make sure we cover everything.
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.