diff --git a/.github/workflows/gem_acceptance.yml b/.github/workflows/gem_acceptance.yml index ab915fb..5a7ac54 100644 --- a/.github/workflows/gem_acceptance.yml +++ b/.github/workflows/gem_acceptance.yml @@ -25,6 +25,9 @@ on: default: "ubuntu-latest" type: "string" +# ENABLE PUPPETCORE. The calling workflow must: +# - Set a valid PUPPET_FORGE_TOKEN secret on its repository. +# - Set ruby_version >= 3.1 to override this workflow's default 2.7; otherwise bundle install will fail. jobs: acceptance: name: "acceptance" @@ -32,6 +35,8 @@ jobs: env: PUPPET_GEM_VERSION: ${{ inputs.puppet_version }} + PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }} + BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}" steps: