Skip to content
11 changes: 11 additions & 0 deletions .github/workflows/ci-main-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,17 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: false

- name: Configure Bundler for private Ruby gems
if: ${{ inputs.language == 'ruby' && inputs.build-profile == 'cli' }}
run: |
if [ -z "${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}" ]; then
echo "Skipping: PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE secret not configured or not in scope"
exit 0
fi
bundle config set --local github.com "x-access-token:${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}"

- name: 'Ruby build'
if: ${{ inputs.language == 'ruby' && inputs.build-profile == 'cli' }}
continue-on-error: true
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ jobs:
bundler-cache: false
working-directory: ${{ inputs.ruby-app-directory != '' && inputs.ruby-app-directory || '.' }}

- name: Configure Bundler for private Ruby gems
if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
run: |
if [ -z "${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}" ]; then
echo "Skipping: PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE secret not configured or not in scope"
exit 0
fi
bundle config set --local github.com "x-access-token:${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}"

- name: Set up Erlang/OTP and rebar3
if: inputs.language == 'erlang'
uses: erlef/setup-beam@v1
Expand Down