Skip to content

Commit

Permalink
Update github output for security action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Oct 25, 2023
1 parent 7ffb136 commit f400d75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/security-issues/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
GH_TOKEN: ${{ inputs.github-token }}
shell: bash
run: |
tbx security cve filter github < cves.jsonl | tee issues.jsonl
tbx security cve filter github < cves.jsonl 2> filtered.txt | tee issues.jsonl
- name: Create Issues
env:
Expand All @@ -58,5 +58,8 @@ runs:
- name: Create Report
shell: bash
run: |
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
echo -e "# Filtered Security Issue\n" >> $GITHUB_STEP_SUMMARY
tail -n +2 filtered.txt | xargs -n1 echo - >> $GITHUB_STEP_SUMMARY
echo -e "# Created Security Issue\n" >> $GITHUB_STEP_SUMMARY
cat created.txt | xargs -n1 echo -
cat created.txt | xargs -n1 echo - >> $GITHUB_STEP_SUMMARY

0 comments on commit f400d75

Please sign in to comment.