File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments