diff --git a/.github/workflows/prpipeline.yml b/.github/workflows/prpipeline.yml index f613d17..2b5757c 100644 --- a/.github/workflows/prpipeline.yml +++ b/.github/workflows/prpipeline.yml @@ -9,24 +9,25 @@ jobs: - name: Run Horusec env: - WORKING_DIR: ./ AUTHOR: rahul.soni@knoldus.com - HORUSEC_CLI_RETURN_ERROR_IF_FOUND_VULNERABILITY: "false" + HORUSEC_CLI_RETURN_ERROR_IF_FOUND_VULNERABILITY: "true" id: run_horusec uses: fike/horusec-action@v0.2.2 with: - arguments: -p ./--config-file-path=horusec-config.json + arguments: -p ./ --config-file-path=horusec-config.json -O report.txt --return-error=true - - name: output - run: |- - export MESSAGE=$(cat report.txt | grep "Total of Vul") + # - name: output + # id: comment + # run: |- + # export MESSAGE=$(cat report.txt | grep "Total of Vul") + # echo "::set-output name=result::$MESSAGE" - - name: Comment PR - uses: thollander/actions-comment-pull-request@v1 - with: - message: | - $MESSAGE - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Comment PR + # uses: thollander/actions-comment-pull-request@v1 + # with: + # message: | + # ${{ steps.comment.outputs.result }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/report.txt b/report.txt index 74e3f88..c560a61 100644 --- a/report.txt +++ b/report.txt @@ -5,8 +5,8 @@ HORUSEC ENDED THE ANALYSIS WITH STATUS OF "success" AND WITH THE FOLLOWING RESUL ================================================================================== -Analysis StartedAt: 2022-09-29 17:38:44 -Analysis FinishedAt: 2022-09-29 17:39:05 +Analysis StartedAt: 2022-09-29 19:29:34 +Analysis FinishedAt: 2022-09-29 19:30:52 ================================================================================== @@ -954,7 +954,7 @@ Details: (1/2) * Possible vulnerability detected: MissConfiguration ================================================================================== In this analysis, a total of 49 possible vulnerabilities were found and we classified them into: -Total of Vulnerability HIGH is: 7 -Total of Vulnerability MEDIUM is: 17 Total of Vulnerability LOW is: 20 Total of Vulnerability CRITICAL is: 5 +Total of Vulnerability HIGH is: 7 +Total of Vulnerability MEDIUM is: 17