Skip to content

Commit

Permalink
Fixed payload
Browse files Browse the repository at this point in the history
  • Loading branch information
applejag committed Aug 28, 2023
1 parent bf4f45c commit 725604e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
with:
payload: |
{
"text": "Vulnerabilities in `${{ github.repository }}` was found by govulncheck on ${{ github.ref_type }} `${{ github.ref_name }}`",
"blocks": [
{
"type": "header",
Expand All @@ -50,7 +49,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Vulnerabilities in `${{ github.repository }}` was found by govulncheck on ${{ github.ref_type }} `${{ github.ref_name }}`"
"text": "Vulnerabilities in `${{ github.repository }}` was found by govulncheck on ${{ github.ref_type }} `${{ github.head_ref || github.ref_name }}`"
}
},
{
Expand All @@ -70,7 +69,7 @@ jobs:
"type": "plain_text",
"text": "Visit commit"
},
"value": "${{ github.event.head_commit.url }}"
"value": "${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
},
{
"type": "button",
Expand Down

0 comments on commit 725604e

Please sign in to comment.