mirror of
https://github.com/actions/toolkit.git
synced 2026-08-10 00:00:12 +02:00
8 lines
210 B
TypeScript
8 lines
210 B
TypeScript
export function getRuntimeToken(): string {
|
|
const token = process.env['ACTIONS_RUNTIME_TOKEN']
|
|
if (!token) {
|
|
throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable')
|
|
}
|
|
return token
|
|
}
|