Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci-main-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,13 @@ 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: |
bundle config set --local github.com "x-access-token:${{ secrets.GH_PRIVATE_REPO_TOKEN }}"

- name: 'Ruby build'
if: ${{ inputs.language == 'ruby' && inputs.build-profile == 'cli' }}
continue-on-error: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,17 @@ jobs:
- name: Checkout source
uses: actions/checkout@v6

- name: Set up Ruby and run bundle install
if: ${{ inputs.language == 'ruby' }} # only run for Ruby projects where we need to generate Gemfile.lock at runtime, inputs.run-bundle-install == true
- name: Set up Ruby
if: ${{ inputs.language == 'ruby' }}
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
bundler-cache: false

- name: Configure Bundler for private Ruby gems
if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
run: |
bundle config set --local github.com "x-access-token:${{ secrets.GH_PRIVATE_REPO_TOKEN }}"

- name: Configure git for private Go modules
if : ${{ inputs.go-private-modules != '' }}
Expand Down