#Use Github secrets in Dagger
1 messages · Page 1 of 1 (latest)
🧵
Here's how I would do it (there might be a better way, if so the experts will correct me):
- In your github actions config, inject the secrets you want as env variables
- In Dagger, reference those secrets with
env://FOO - This will work either with explicit CLI flags, or user defaults loaded from
.env
exactly we want to use this way only
lets say we have 3 diff env in github repo settings for github action like
- dev
- staging
- production
and how while devloping locally we want to sync secrets & variables for local/dev environment while devloping with dagger
is this correct way and secure?
As long as your tool fetches those secrets and sets them as env variables in your local she'll session that'll be ok