How to securely store passwords as environment variables using GitHub Actions ("Actions Secrets")

Опубликовано: 31 Май 2026
на канале: Melissa Van Bussel (ggnot2)
2,074
43

In this video, we'll learn how to securely store passwords, API keys, and other confidential information on GitHub as environment variables. Then, we'll learn how to use GitHub Actions to access these environment variables in R scripts or Quarto documents.

This video is video #2 of a six-video series (there's only six, not seven, oops - I misspoke in the video intro) aimed at making complex dashboard projects accessible and reproducible.

Video 1 (Publishing Quarto Dashboards for FREE using GitHub Actions and GitHub Pages):    • Publishing Quarto Dashboards for FREE usin...  
Video 2 (How to securely store passwords as environment variables using GitHub Actions):    • How to securely store passwords as environ...  
Video 3 (How to access Spotify data using R):    • How to access Spotify data using R (using ...  
Video 4 (Embedding media in Quarto projects using iframes):    • How to embed media in Quarto projects usin...  
Video 5 (Creating interactive Quarto dashboards with Observable JS, GitHub Actions, and GitHub Pages):    • Creating Interactive Quarto Dashboards wit...  
Video 6 (Creating and styling the table):    • Posit 2024 Table Contest - My entry - Meli...  

Links:
Completed dashboard: https://melissavanbussel.github.io/sp...
Code repo for dashboard: https://github.com/melissavanbussel/s...
publish.yml template: https://quarto.org/docs/publishing/gi...

Want to support my channel or connect?

☕Buy me a coffee: https://ko-fi.com/melissavanbussel
💼 LinkedIn:   / melissavanbussel  
🐦 Twitter:   / melvanbussel  
🌐 Website: https://www.melissavanbussel.com/
💻 GitHub: https://github.com/melissavanbussel

*Please note: it’s helpful for me if you send me a message on LinkedIn when you add me letting me know you’re adding me because of YouTube, so that I can keep track of how I know each person in my network😊

00:00 Introduction
02:25 How .Renviron files and Sys.getenv work
04:43 Using environment variables in GitHub Actions