mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Run govulncheck on the binary and remove upload of SARIF to github as github doesnt like the SARIF govulncheck produces
This commit is contained in:
parent
4771de3f95
commit
3b0938e878
2 changed files with 2 additions and 11 deletions
6
.github/workflows/ci.py
vendored
6
.github/workflows/ci.py
vendored
|
|
@ -270,10 +270,8 @@ def main() -> None:
|
|||
test_kitty()
|
||||
elif action == 'govulncheck':
|
||||
subprocess.check_call(['go', 'install', 'golang.org/x/vuln/cmd/govulncheck@latest'])
|
||||
with open('govulncheck.sarif', 'wb') as f:
|
||||
subprocess.check_call(['govulncheck', '-format', 'sarif', './...'], stdout=f)
|
||||
with open('govulncheck.sarif') as f:
|
||||
print(f.read())
|
||||
subprocess.check_call(['govulncheck', '-mode=binary', 'kitty/launcher/kitten'])
|
||||
subprocess.check_call(['govulncheck', './...'])
|
||||
elif action == 'gofmt':
|
||||
q = subprocess.check_output('gofmt -s -l tools kittens'.split()).decode()
|
||||
if q.strip():
|
||||
|
|
|
|||
7
.github/workflows/codeql-analysis.yml
vendored
7
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -68,10 +68,3 @@ jobs:
|
|||
- name: Run govulncheck
|
||||
if: matrix.language == 'go'
|
||||
run: python3 .github/workflows/ci.py govulncheck
|
||||
|
||||
- name: Upload govulncheck results
|
||||
if: matrix.language == 'go'
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
sarif_file: govulncheck.sarif
|
||||
category: govulncheck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue