Skip to content

Commit a6d463e

Browse files
committed
fix config check
1 parent 22a8756 commit a6d463e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class Config {
4747
console.error(`Webhook configuration for app ${appid} at index ${index} is missing 'repo' or 'workflow_id'`);
4848
process.exit(1);
4949
}
50-
if (!webhook.access_token || !process.env.GITHUB_ACCESS_TOKEN || !config.github_token) {
50+
if (!webhook.access_token && !process.env.GITHUB_ACCESS_TOKEN && !config.github_token) {
5151
console.error(`Webhook configuration for app ${appid} at index ${index} is missing an access token and there's no default token set`);
5252
process.exit(1);
5353
}

0 commit comments

Comments
 (0)