1
0
mirror of synced 2025-12-20 02:19:14 -05:00

move the error for github apps pipeline (#38135)

This commit is contained in:
Rachael Sewell
2023-06-19 10:33:32 -07:00
committed by GitHub
parent ff6f13b3b9
commit dcda279a07
2 changed files with 8 additions and 7 deletions

View File

@@ -6,13 +6,6 @@ if (!process.env.GITHUB_TOKEN) {
dotenv.config()
}
// check for required PAT
if (!process.env.GITHUB_TOKEN) {
throw new Error(
'Error! You must have a GITHUB_TOKEN set in an .env file to use the GitHub REST API.'
)
}
// this module needs to work in development, production, and GitHub Actions
//
// GITHUB_TOKEN comes from one of the following sources: