From 725604ecd6510d9a23f38e88a9677f2c8b2eacf4 Mon Sep 17 00:00:00 2001 From: Kalle Fagerberg Date: Mon, 28 Aug 2023 14:02:39 +0200 Subject: [PATCH] Fixed payload --- .github/workflows/govulncheck.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index caa087c..8bf6691 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -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", @@ -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 }}`" } }, { @@ -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",