mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-23 08:58:08 +08:00
Add a token property to Toolkit
This commit is contained in:
@@ -40,6 +40,11 @@ export class Toolkit {
|
|||||||
*/
|
*/
|
||||||
readonly exit: Exit = new Exit(this.logger)
|
readonly exit: Exit = new Exit(this.logger)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The authentication token for the GitHub API
|
||||||
|
*/
|
||||||
|
readonly token: string = process.env.GITHUB_TOKEN || ''
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrap a Signale logger so that its a callable class
|
* Wrap a Signale logger so that its a callable class
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user