mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 09:56:46 +00:00
Fix parsing of secrets containing '=' character
Signed-off-by: Mathieu Bergeron <mathieu.bergeron@nuecho.com>
This commit is contained in:
parent
c58c6870a2
commit
fc7e9a2b38
4 changed files with 154 additions and 3185 deletions
|
@ -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()
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue