GitHub Secrets 101: Store API Keys, Tokens, and Credentials Safely

1 min read

In this tutorial we will discuss how to create secrets in github. GitHub Secrets are encrypted environment variables that you define in your repository or organization settings. They're not visible in logs, not exposed to users, and are read-only in workflows.
Prerequisite
- Github Account
Objective
- Create github secret
To create a github secret the first thing to do is
Open the repository
Click on settings
- Scroll down
- Click on Secrets and variables
- Click on Actions
- Click on New repository secret
Type the name of the Secret e.g Username
Paste the value as Secret
Click on Add Secret
0
Subscribe to my newsletter
Read articles from Oshaba Samson directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Oshaba Samson
Oshaba Samson
I am a software developer with 5 years + experience. I have working on web apps ecommerce, e-learning, hrm web applications and many others