Skip to content

Commit 61b4df6

Browse files
committed
updating the action
Signed-off-by: nikhil2611 <ngupta@progress.com>
1 parent e7f7d9c commit 61b4df6

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/ci-main-pull-request.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ on:
487487
required: false
488488
type: boolean
489489
default: false
490-
run-bundle-install: # Added to support projects without committed Gemfile.lock (e.g., chef-cli)
490+
run-bundle-install:
491491
description: 'Run bundle install before scanning to generate Gemfile.lock at runtime'
492492
required: false
493493
type: boolean
@@ -899,13 +899,8 @@ jobs:
899899
if: ${{ inputs.language == 'ruby' && inputs.run-bundle-install == true }}
900900
run: |
901901
echo "Generating Gemfile.lock for Grype scan..."
902-
# Change to ruby-app-directory if specified, otherwise stay in root
903-
if [ -n "${{ inputs.ruby-app-directory }}" ]; then
904-
echo "Changing to Ruby app directory: ${{ inputs.ruby-app-directory }}"
905-
cd "${{ inputs.ruby-app-directory }}"
906-
fi
907902
bundle install
908-
echo "Gemfile.lock generated successfully at: $(pwd)/Gemfile.lock"
903+
echo "Gemfile.lock generated successfully"
909904
910905
- name: Determine severity threshold
911906
id: severity

0 commit comments

Comments
 (0)