mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02: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:
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
|
||||
|
||||
Reference in New Issue
Block a user