# How to Add Secrets to Github

> To securely store sensitive data in GitHub, navigate to your repository settings, locate Secrets and variables under Security, select Actions, and add a new repository secret with your desired name and value.

Canonical: https://livedemo.ai/tutorials/how-to-add-secrets-to-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2ebad673bd5aa8e60c64/preview?step=1

## Steps

1. Go to the main page of your repository on GitHub.
2. Click on the 'Settings' tab at the top of the repository.
3. In the left sidebar, scroll down and click on 'Secrets and variables' under 'Security'.
4. Select 'Actions' to access GitHub Actions secrets.
5. Click on 'New repository secret'.
6. Enter a name for your secret and use all caps for convention.
7. Enter the value.
8. Click 'Add secret' to save it.
9. Adding secrets ensures that sensitive data such as API keys, tokens, or credentials are securely stored and used within your workflows without being hard-coded in your repository.
