Skip to content

Commit dac5e64

Browse files
Update
Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent e0a536b commit dac5e64

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ on:
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.
912
env:
10-
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN }}
1113
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN }}"
1214

1315
jobs:
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 }}

0 commit comments

Comments
 (0)