Skip to main content

Generating a GitHub Personal Access Token

We use a service GitHub account to create personal access tokens.

Prerequisties

Accessing the service account details

Note: Use an incognito browser session to generate token to be sure not to create in your own account.

Open the 1Password vault and search for staff-infrastructure-moj. Open a new incognito browser session and copy the user, password then create a one time password using the code in the secure notes on the GitHub challenge.

Creating a PAT

Warning: Treat your tokens like passwords and keep them secret. When working with the API, use tokens as environment variables instead of hardcoding them.

Once logged into the staff-infrastructure-moj account. Follow GitHub’s latest guidance on creating a PAT here.

This page was last reviewed on 31 May 2024. It needs to be reviewed again on 30 November 2024 by the page owner #nvvs-devops .
This page was set to be reviewed before 30 November 2024 by the page owner #nvvs-devops. This might mean the content is out of date.