Skip to content

Commit 1cf5ebe

Browse files
committed
attaching gemfile to artifacts
1 parent c0b9461 commit 1cf5ebe

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,21 @@ jobs:
216216
run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf "https://github.com/"
217217

218218
- name: generate Gemfile.lock if needed for Ruby projects
219-
if: ${{ inputs.language == 'ruby' }}
219+
if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
220220
continue-on-error: true
221-
# if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
222221
run: |
223222
if [ ! -f Gemfile.lock ]; then
224223
bundle install
225-
# --path vendor/bundle
226-
cat Gemfile.lock
227224
fi
228225
226+
- name: attach artifact for Gemfile.lock for debugging
227+
if: ${{ inputs.language == 'ruby' }}
228+
uses: actions/upload-artifact@v4
229+
continue-on-error: true
230+
with:
231+
path: Gemfile.lock
232+
name: ${{ github.event.repository.name }}-Gemfile-lock.txt
233+
229234
- name: BlackDuck SCA scan
230235
uses: blackduck-inc/black-duck-security-scan@v2.1.1
231236
continue-on-error: true # Allow pipeline to continue even with policy violations

0 commit comments

Comments
 (0)