From f6a1ec08b67fe9d10325dbdbe8c6da320e76b5ff Mon Sep 17 00:00:00 2001 From: haggai yaniv Date: Thu, 5 Sep 2024 12:55:26 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20Fix=20MOBB-2240=20-=20Add=20?= =?UTF-8?q?support=20for=20vul=20file=20with/no=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- review/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/review/action.yml b/review/action.yml index c43f5ee..feadadc 100644 --- a/review/action.yml +++ b/review/action.yml @@ -58,7 +58,8 @@ runs: SCANNER=${{ inputs.scanner }} COMMIT_HASH=$(git rev-parse $GITHUB_HEAD_REF) PR_NUMBER=${{ github.event.pull_request.number }} - OUT=$(npx --yes mobbdev@latest review -r $REPO --ref $GITHUB_HEAD_REF --ch $COMMIT_HASH --api-key ${{ inputs.api-key }} -f ${{ inputs.report-file }} --pr $PR_NUMBER --github-token ${{ inputs.github-token }} --scanner $SCANNER -p .) + VUL_FILE_PATH=results/$(basename ${{ inputs.report-file }}) + OUT=$(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 .) RETVAL=$? if [ $RETVAL -ne 0 ]; then exit $RETVAL From 7706ec02be43e31e1064611225cae82b9b6dce63 Mon Sep 17 00:00:00 2001 From: haggai yaniv Date: Wed, 11 Sep 2024 12:56:45 +0300 Subject: [PATCH 2/3] Update action.yml --- review/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/review/action.yml b/review/action.yml index feadadc..1e6e691 100644 --- a/review/action.yml +++ b/review/action.yml @@ -59,6 +59,7 @@ runs: COMMIT_HASH=$(git rev-parse $GITHUB_HEAD_REF) PR_NUMBER=${{ github.event.pull_request.number }} VUL_FILE_PATH=results/$(basename ${{ inputs.report-file }}) + echo vulpath-$VUL_FILE_PATH OUT=$(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 .) RETVAL=$? if [ $RETVAL -ne 0 ]; then From 538fda7f5858daa144f178c37eb031007298684b Mon Sep 17 00:00:00 2001 From: haggai yaniv Date: Wed, 11 Sep 2024 13:00:01 +0300 Subject: [PATCH 3/3] Update action.yml --- review/action.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/review/action.yml b/review/action.yml index 1e6e691..feadadc 100644 --- a/review/action.yml +++ b/review/action.yml @@ -59,7 +59,6 @@ runs: COMMIT_HASH=$(git rev-parse $GITHUB_HEAD_REF) PR_NUMBER=${{ github.event.pull_request.number }} VUL_FILE_PATH=results/$(basename ${{ inputs.report-file }}) - echo vulpath-$VUL_FILE_PATH OUT=$(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 .) RETVAL=$? if [ $RETVAL -ne 0 ]; then