Actions may need to use sensitive data like passwords and API keys. In this video, learn how actions can be configured to use secrets without exposing them.
- [Narrator] We've seen … how we can add environment variables to workflows, … but sometimes we need to store sensitive information … like passwords or API keys. … To do that, … we need to use a secret. … Unlike environment variables … initialized in a workflow file, … secrets are stored as encrypted values … in your GitHub repository's settings. … After a secret is stored, … it can't be viewed or edited. … To change a secret, … you have to delete it and recreate it. … Secrets also come with a few limits. … Workflows are limited to 100 secrets … and secrets are limited to 64 kilobytes in size. … If you need to store secrets … that are larger than 64 kilobytes, … you can encrypt them as files, … store them in the repository … and then store the decryption key … as a secret in the workflow. … But if you don't want to deal with that kind of workaround, … keep your secrets short and sweet. … You can access secrets in your workflows … using the secrets context in YAML format. … This means starting a string with secrets …
- Creating an action
- Creating a workflow
- Adding actions to a workflow
- Using an action from a repository
- Developing a CI/CD pipeline with GitHub Actions
- Building custom actions
- Publishing an action to the GitHub Marketplace
Skill Level Beginner
1. Your First Action
Your first Action2m 31s
2. Connecting Actions with Workflows
3. Using Actions
4. Developing a CI/CD Workflow
5. Building Custom Actions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.