File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 66 - " main"
77 workflow_dispatch :
88
9+ # GitHub Actions doesn't allow string interpolation in the 'secrets:' section of a workflow call.
10+ # We need to construct the authentication string with the token here as an environment variable,
11+ # then pass that constructed variable as a secret to the called workflow.
912env :
10- PUPPET_FORGE_TOKEN : ${{ secrets.PUPPET_FORGE_TOKEN }}
1113 BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : " forge-key:${{ secrets.PUPPET_FORGE_TOKEN }}"
1214
1315jobs :
1416 Spec :
15- uses : " puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main "
17+ uses : " puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@puppetcore "
1618 with :
1719 # This line enables shellcheck to be run on this repository
1820 run_shellcheck : true
19- secrets : " inherit"
21+ secrets :
22+ # Pass the pre-formatted authentication string from the environment variable
23+ BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : ${{ env.BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM }}
You can’t perform that action at this time.
0 commit comments