Quick summary
GitHub Secrets allow you to securely store sensitive data like API keys, tokens, and credentials so they can be used in GitHub Actions workflows without being hard-coded in your repository. This tutorial walks you through every step to add a repository secret via GitHub Settings.
Steps
- Go to the main page of your repository on GitHub.
- Click on the Settings tab at the top of the repository.
- In the left sidebar, scroll down and click on Secrets and variables under Security.
- Select Actions to access GitHub Actions secrets.
- Click on New repository secret.
- Enter a name for your secret, using all caps by convention.
- Enter the secret value in the value field.
- Click Add secret to save it.
- Your secret is now stored securely and available for use in your workflows without being hard-coded in your repository.



