Skip to content
Open

PR #8

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/prpipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

8 changes: 4 additions & 4 deletions report.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

==================================================================================

Expand Down Expand Up @@ -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