fix: remove quotes around env variable name

This commit is contained in:
Elias Lundgren 2023-09-26 17:36:45 +02:00
parent e75930a3a6
commit d3d7271f87
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ describe('resolveBuildSecret', () => {
])('given %p key and %p env', async (kvp: string, exKey: string, exValue: string, error: Error | null) => {
try {
const secret = Inputs.resolveBuildSecretEnv(kvp);
expect(secret).toEqual(`id=${exKey},env="${exValue}"`);
expect(secret).toEqual(`id=${exKey},env=${exValue}`);
} catch (e) {
// eslint-disable-next-line jest/no-conditional-expect
expect(e.message).toEqual(error?.message);

View File

@ -85,7 +85,7 @@ export class Inputs {
public static resolveBuildSecretEnv(kvp: string): string {
const [key, value] = parseKvp(kvp);
return `id=${key},env="${value}"`;
return `id=${key},env=${value}`;
}
public static resolveBuildSecret(kvp: string, file: boolean): string {