Skip to content

Commit 6c55ca0

Browse files
authored
Fix MOBB-2843 - Download repo from the url instead of the file (#26)
1 parent 4265b79 commit 6c55ca0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

review/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ runs:
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 }}"
@@ -71,7 +71,7 @@ runs:
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
@@ -80,7 +80,7 @@ runs:
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

0 commit comments

Comments
 (0)