Тёмный

Secrets and Environment Variables in your GitHub Action 

Dev Leonardo
Подписаться 4,7 тыс.
Просмотров 33 тыс.
50% 1

Need to deploy from a GitHub Action? Or something as simple as sending a Slack message when the pipeline has ended? Don't store your API Keys in clear, GitHub Actions let you safely handle secrets as well as public environment variables.
Let's see how!
_______________________________
Support my work: github.com/sponsors/Balastrong
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: / discord
You can also follow me on the other platforms:
Twitter: / balastrong
dev.to: dev.to/balastrong
Home: leonardomontini.dev/
TikTok: / balastrong
GitHub: github.com/Balastrong
Instagram: / devbalastrong
_______________________________
Sound effects from www.zapsplat.com
#github #githubaction #devops

Наука

Опубликовано:

 

2 июл 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@associatedixon
@associatedixon Год назад
Thank you this seems a lot more convient then making a .env file and stopping it from loading to github. Appreciate the knowledge!
@DevLeonardo
@DevLeonardo Год назад
Yep, and having a .env in your repository means everything is in clear. If you have secrets/api keys, it's not a valid solution :D Glad to hear you liked the video, if you have a look at my channel there are quite a lot on GitHub Actions. I'd love to hear your feedback 😉
@jjtthh5872
@jjtthh5872 Месяц назад
tks for solving my problem
@user-nl3uu9cx3x
@user-nl3uu9cx3x 4 месяца назад
Thank you so much!
@hamzaboutssaroute9652
@hamzaboutssaroute9652 Месяц назад
thanks for your clear explanation
@appwala3728
@appwala3728 5 месяцев назад
Thank you so much for this video
@DevLeonardo
@DevLeonardo 5 месяцев назад
You're welcome, hope it was helpful for you!
@davidheredia2296
@davidheredia2296 11 месяцев назад
How should I use an API key? I tried to use the secrets in deployment, but it doesn't give me the API key, and in build it does, but it shows the API key in the code.
@animatek6155
@animatek6155 Месяц назад
Do you find any solution? I’ve got the same problem
@yorailevi6747
@yorailevi6747 6 месяцев назад
Good video ty.
@DevLeonardo
@DevLeonardo 6 месяцев назад
Thank you! Feel free to have a look at the other videos in my channel :D
@chromesavior
@chromesavior Месяц назад
is it safe to put in github pages? and use it to our project
@Bineeshvp-wq3zn
@Bineeshvp-wq3zn 19 дней назад
for a private repo is that not possible to setup the secretes? bcz there is no settings tab available for the private repo.
@rodrigoczleo
@rodrigoczleo 11 месяцев назад
how do I get this info inside code, to use in api key in requests for instance
@DevLeonardo
@DevLeonardo 11 месяцев назад
You can store the api keys in a .env file, make sure to put it under .gitignore as it should NEVER get pushed to the repo. Then, depending on the type of application you're building, you'll be able to get the value. For example in node is process.env.VALUE_NAME but frameworks like next or astro have their own syntax. It's usually in the docs of each framework
@AddictedGamerr
@AddictedGamerr 2 месяца назад
how do we add pem file in the secrets
@ROGUEyoutube
@ROGUEyoutube Месяц назад
You remind me of KennyS
@dfgdfg_
@dfgdfg_ 8 месяцев назад
You know you're sending all your secrets to Grammarly, right? 😅
@DevLeonardo
@DevLeonardo 8 месяцев назад
Grammarly elected the safest password manager in 2023! Jokes aside, I guess I'll disable it for Github, thanks :)
Далее
Как выжить на 1000 рублей?
13:01
Просмотров 685 тыс.
Клип Уже На Канале #янгер #shorts
00:15
GITHUB_TOKEN
5:28
Просмотров 1,5 тыс.
5 JavaScript API Key Mistakes (and how to fix them)
12:49
GitHub Actions -  Getting Started With Environments
12:25
How GitHub Actions 10x my productivity
8:18
Просмотров 391 тыс.
Main filter..
0:15
Просмотров 12 млн