wimpysworld / obs-studio-portable

Portable OBS Studio for Ubuntu bundled with 50 plugins
MIT License
86 stars 11 forks source link

Fix passing of secrets around in GitHub Actions #11

Closed lucyllewy closed 1 year ago

lucyllewy commented 1 year ago

There are two issues with the GitHub publish workflow:

This PR fixes both issues, by using --setenv in the systemd-nspawn command in build-enter.sh, and replacing the sudo env VARIABLE="$VARIABLE"... chain with sudo --preserve-env.

(My assumptions about GitHub's sudo configuration were incorrect when I initially wrote the workflow. I believed the configuration wouldn't allow --preserve-env to be used for sudo commands without being configured first in /etc/sudoers. This is not true, and the environment is correctly preserved when the --preserve-env argument is specified on the command.)