Skip to content

Setting up GitHub actions secrets

Jeff Jennings edited this page Feb 6, 2025 · 2 revisions

To set up secrets in order for the build actions workflow in astropy-tutorials to successfully execute, do the following.

  1. In the astropy GitHub organization, create a fine-grained personal access token with:

a) 'Repository access' to both astropy-tutorials and learn-astropy

b) 'Organization permissions':

  • Access to organization secrets (read/write)

c) 'Repository permissions' (for both astropy-tutorials and learn-astropy):

  • Access to metadata (read)
  • Access to secrets (read/write)
  • "Contents" repository permissions (write)
  • "Actions" repository permissions (write)
  1. Create a secret in astropy-tutorials (go to ‘Settings’ at the top of the page, then ‘Secrets and Variables’ in the left panel, then ‘Actions’ --> ‘New repository secret’). Name the secret DISPATCH_GITHUB_TOKEN, and give it the value of the token you created (if the secret already exists, update its value with the new token).
Clone this wiki locally