Skip to content

Commit

Permalink
Add information about expired tokens
Browse files Browse the repository at this point in the history
Show how to update expired Github tokens.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm committed Aug 6, 2024
1 parent d9c1fc1 commit 9ee653b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions github/azure-self-hosted-runners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,19 @@ $ az container logs -g garm -n garm-kg1ocu --container-name garm --follow
}
127.0.0.1 - - [02/Jun/2023:13:01:21 +0000] "GET /api/v1/metadata/runner-registration-token/ HTTP/1.1" 200 29 "" "curl/7.81.0"
```

## Updating expired Github tokens

The Github tokens should be updated in the Garm installation from time-to-time because they expire. You will need to re-generate the expired token(s) first.

Then you will need to update its value on the Key Vault. For example, suppose the new token is "github_pat_xxxxxxxx", to update the "garm" secret in the "garm-github-tokens" vault:

```
$ az keyvault secret set --value github_pat_xxxxxxxx --name garm --vault-name garm-github-tokens
```

Finally you will need to re-deploy Garm:

```bash
$ terraform apply
```

0 comments on commit 9ee653b

Please sign in to comment.