fix(ci): vuln check comment (#24056)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
Tyler
2025-03-19 09:31:49 -04:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 97dad50388
commit 26bc9f66ee
+15 -10
View File
@@ -35,14 +35,19 @@ jobs:
continue-on-error: true
- name: Debug govulncheck Output
run: cat govulncheck-output.txt || echo "govulncheck-output.txt is empty!"
- name: Comment on PR
if: env.govulncheck_output != ''
uses: mshick/add-pr-comment@v2
- name: Add comment to PR
uses: actions/github-script@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: |
⚠️ **govulncheck found vulnerabilities:**
```
${{ env.govulncheck_output }}
```
message-id: govulncheck-warning
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
issue_number: context.issue.number,
repo: context.repo.repo,
body: `
⚠️ **govulncheck found vulnerabilities:**
>${{ env.govulncheck_output }}
`
})