Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add token to use GitHub CLI #1510

Merged
merged 1 commit into from
May 29, 2022

Conversation

victorlin
Copy link
Member

Description of proposed changes

The usage of gh workflow run was untested until the release of 2.37.1. The first time using it revealed additional authentication is needed for this step to work properly (#1508). This change adds the necessary environment variable to authenticate to GitHub CLI (doc).

Other things done outside of PR changes:

  1. Logged in to GitHub as nextstrain-bot.
  2. Created a new Personal Access Token named org secret: GH_TOKEN_NEXTSTRAIN_BOT_WORKFLOW_DISPATCH with public_repo scope, expiring 2023-01-01.
  3. Went to https://github.com/organizations/nextstrain/settings/secrets/actions.
  4. Created a new secret GH_TOKEN_NEXTSTRAIN_BOT_WORKFLOW_DISPATCH available to repos: augur, auspice, test-github-actions.

Related issue(s)

Testing

  1. Created a test workflow over at nextstrain/test-github-actions@f9c45e4
  2. Re-ran while tweaking the token scope until I got a successful command with minimal scope.

@jameshadfield jameshadfield merged commit 1156578 into master May 29, 2022
@jameshadfield jameshadfield deleted the victorlin/fix-rebuild-docker-image branch May 29, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[internal CI] rebuild-docker-image fails
2 participants