Storing Github Personal Access Token in Secrets Manager

We can use github's personal access tokens in order to programmatically authenticate and gain access to our github account without having to log in. This is especially useful when building a CI/CD pipeline and wanting to download the code directly from a private repository.

You can generate a token by going to github developer settings and selecting personal access token in the left sidebar. developer settings page

After selecting the validity period and permissions, you should receive a hash. Copy it now as you won't be able to view it again after leaving this page. generated access token

Go to AWS Secrets Manager console and create a new plain text secret store token in aws

Name the token and add a description so you know what it's for name token

Get the token id and arn token id and arn


A verification email has been sent to

Keep in Touch

Join other developers in Exanubes Newsletter

© 2023