Skip to content

Commit

Permalink
ci(legitify-pat): adding issue creation on success and failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmmr authored Aug 22, 2023
1 parent 0e3385f commit e1b5592
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/legitify-repo-scan-pat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,15 @@ jobs:
github_token: ${{ secrets.GH_PAT }}
analyze_self_only: "true"
scorecard: yes


- name: Create Summary Issue
if: success()
run: |
date=`date +%m-%d-%Y`
gh issue create --title "Daily Scan Report - ${date}" --body "The summary is available at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Create Error Issue
if: failure()
run: |
date=`date +%m-%d-%Y`
gh issue create --title "Repository Scan Failed - ${date}" --body "The repository scan failed, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 comments on commit e1b5592

Please sign in to comment.