Script to set github org/repo actions variables and secrets from a config file.
--conf
-> MANDATORY: yaml config for the run--gh-token
-> path to github token file--dry-run
-> don't actually do any change--verbose
-> enable verbose logging
Github token file can also be passed from GITHUB_TOKEN_FILE
env variable.
NOTE: github token file MUST be set from either the cli flag or env variable!
orgs:
foo:
actions:
variables:
orgVar1: "orgValue1"
secrets:
- orgSecret0
repos:
bar:
actions:
variables:
repoVar1: "repoValue1"
repoVar2: "repoValue2"
secrets:
- repoSecret0