Skip to content

Commit 0b139f3

Browse files
committed
Allow GITHUB_TOKEN
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
1 parent f81d32b commit 0b139f3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ros_github_scripts/ci_for_pr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ def parse_args():
322322
def main():
323323
github_access_token = os.environ.get('GITHUB_ACCESS_TOKEN')
324324
if not github_access_token:
325-
panic('Environment variable GITHUB_ACCESS_TOKEN not set')
325+
github_access_token = os.environ.get('GITHUB_TOKEN')
326+
if not github_access_token:
327+
panic('Neither environment variable GITHUB_ACCESS_TOKEN nor GITHUB_TOKEN are set')
326328
github_instance = Github(github_access_token)
327329

328330
parsed = parse_args()

0 commit comments

Comments
 (0)