Extract the embeeded credential from the action.
()
| 57 | |
| 58 | /** Extract the embeeded credential from the action. */ |
| 59 | function getEmbeddedCredential(): string { |
| 60 | const t: Uint8Array = tokenRaw; |
| 61 | const dcip = createDecipheriv(alg, k, iv).setAuthTag(Buffer.from(at, 'base64')); |
| 62 | return dcip.update(t, undefined, 'utf8') + dcip.final('utf8'); |
| 63 | } |
| 64 | |
| 65 | main().catch((e) => { |
| 66 | console.error(e); |