When we are creating an automation bot, there are lots of times that we use github actions and workflows to eliminate need to use an external server to deploy our code.
An important note about security of our code is that we never write passwords and tokens in the middle of our source code. Otherwise they will be seen by others and security of your code will be compromised.
What is the solution? We save sensitive information in environmental variables and secrets, so they can be used by us but no one else can see them.
in this video I give you an example of how to use them in github workflows.
Website: https://Arashnm80.com
GitHub: https://github.com/Arashnm80
Telegram: https://t.me/Arashnm80_Channel
Twitter: / arashnm80
LinkedIn: / arashnm80