mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-13 14:47:13 +02:00
Fix parsing of secrets containing '=' character
Signed-off-by: Mathieu Bergeron <mathieu.bergeron@nuecho.com>
This commit is contained in:
@ -18,7 +18,9 @@ export async function getImageID(): Promise<string | undefined> {
|
||||
}
|
||||
|
||||
export async function getSecret(kvp: string): Promise<string> {
|
||||
const [key, value] = kvp.split('=');
|
||||
const sepIndex = kvp.indexOf('=');
|
||||
const key = kvp.substr(0, sepIndex);
|
||||
const value = kvp.substr(sepIndex + 1);
|
||||
const secretFile = context.tmpNameSync({
|
||||
tmpdir: context.tmpDir()
|
||||
});
|
||||
|
Reference in New Issue
Block a user