File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 COMMIT_HASH=$(git rev-parse $GITHUB_HEAD_REF)
6161 PR_NUMBER=${{ github.event.pull_request.number }}
6262 VUL_FILE_PATH=results/$(basename ${{ inputs.report-file }})
63- MobbExecString="npx --yes mobbdev@latest review -r $REPO --ref $GITHUB_HEAD_REF --ch $COMMIT_HASH --api-key ${{ inputs.api-key }} -f $VUL_FILE_PATH --pr $PR_NUMBER --github-token ${{ inputs.github-token }} --scanner $SCANNER -p . "
64-
63+ MobbExecString="npx --yes mobbdev@latest review -r $REPO --ref $GITHUB_HEAD_REF --ch $COMMIT_HASH --api-key ${{ inputs.api-key }} -f $VUL_FILE_PATH --pr $PR_NUMBER --github-token ${{ inputs.github-token }} --scanner $SCANNER"
64+
6565 # Check if mobb-project-name exists and append it
6666 if [ -n "${{ inputs.mobb-project-name }}" ]; then
6767 echo "mobb-project-name specified: ${{ inputs.mobb-project-name }}"
7171 # Output the final command string for debugging
7272 echo "Mobb Command: $MobbExecString"
7373 OUT=$(eval $MobbExecString)
74-
74+
7575 RETVAL=$?
7676 if [ $RETVAL -ne 0 ]; then
7777 exit $RETVAL
8080
8181 echo "fix-report-url=$OUT" >> $GITHUB_OUTPUT
8282 echo "Mobb URL: $OUT"
83-
83+
8484 shell : bash -l {0}
8585
8686 - uses : Sibz/github-status-action@v1
You can’t perform that action at this time.
0 commit comments