Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Aug 27, 2024
1 parent c714a32 commit dc4128d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Comment Status on PR
run: |
gh repo set-default ${{ github.repository }}
gh pr comment ${{ github.event.issue.number }} -b ":construction: Running Trivy scan started on PR :construction: "
- name: Checkout PR code
uses: actions/checkout@v4
with:
Expand All @@ -35,5 +39,4 @@ jobs:
run: |
echo '```' | cat - trivy-report.txt > temp && mv temp trivy-report.txt
echo '```' >> trivy-report.txt
gh repo set-default ${{ github.repository }}
gh pr comment ${{ github.event.issue.number }} -F trivy-report.txt
gh issue comment ${{ github.event.issue.number }} --edit-last -F trivy-report.txt

0 comments on commit dc4128d

Please sign in to comment.