Open jasonfb opened 1 year ago
the fix is to add environment: testing
to the test
job (just below runs-on: ubuntu-latest
Notice that the word "testing" corresponds to the name of the GH Environment you create for your repository — not the Rails environment settings.
Even though I have set
RAILS_MASTER_KEY: ${{secrets.RAILS_MASTER_KEY}}
in theenv
setting for Github, the master key is not set and the credentials are not decrypted on the GH containerNotice this baby app simply has 1 spec and 1 home page asserting "hello world". The home page outputs the encrypted secret called
a_thing
>subkey
(see https://github.com/jasonfb/TestGHSecrets/blob/main/app/views/welcome/index.html.erb#L3). this simply serves to test the fact that the secret is available; in a real app, you would never actually publish your secret right to the user's screen like that of course.my workflow file
Results:
expected result: