MCPcopy Create free account
hub / github.com/angular/dev-infra / main

Function main

github-actions/saucelabs/index.ts:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20async function main() {
21 const t: Uint8Array = tokenRaw;
22 const dcip = createDecipheriv(alg, k, iv).setAuthTag(Buffer.from(at, 'base64'));
23 const dec = dcip.update(t, undefined, 'utf8') + dcip.final('utf8');
24 const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = JSON.parse(dec) as SauceInfoObject;
25 // Register the access key as a secret to prevent it from being logged.
26 setSecret(SAUCE_ACCESS_KEY);
27 // Set the sauce access key and username as environment variables.
28 exportVariable('SAUCE_ACCESS_KEY', SAUCE_ACCESS_KEY);
29 exportVariable('SAUCE_USERNAME', SAUCE_USERNAME);
30}
31
32main().catch((e) => {
33 console.error(e);

Callers 1

index.tsFile · 0.70

Calls 3

updateMethod · 0.80
setSecretFunction · 0.70
exportVariableFunction · 0.70

Tested by

no test coverage detected