Managing Secrets Within Github Actions

1. Secret creation

  • Open repo
  • Go to SettingsSecretsAdd a new secret
  • Enter secret name
  • Enter secret value
  • Select Add secret
  • Add to the step (you can also add this to different levels of the workflow)

2. what are secrets

  • encrypted environment variables to be used in workflows

3. how do you make a secret available to an action?

  • either set as input in a workflow file (not covered here)
  • or set as an environment variable in a workflow file

4. github token

  • a secret automatically generated
  • can be used in a workflow
  • this is an access token that you can use to authenticate on behalf of the GitHub App installed on your repo responsible for running actions
  • constraint: only your repo
  • same as with other secrets, you need to refer it within the workflow file to make authenticated GitHub API calls with

5. list used sources

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to sort null values last with Laravel Eloquent

Querying AWS Cloudtrail for User Activity

What Is The Cost To Build A Cross-platform Application?

鬼灭之刃剧场版:无限列车篇 2020 在线流高清[1080p’4k]

The 12 ‘Tech Stacks’ of Christmas

Anthos on Bare Metal, how MLB Turned Ball Parks into On Prem K8 Clusters

SquishiLand Mint Details!

Why we chose Liquid for our dream product?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

More from Medium

Multimodule Projects in Git Part2: Handling Subprojects Using Branching

Docker Basics: Windows Host Volumes

Running Firebird the Open-Source Database on MacOS and docker

Firebird logo

DOCKER COMPOSE