mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Print out the govulncheck.sarif file in CI
This commit is contained in:
2
.github/workflows/ci.py
vendored
2
.github/workflows/ci.py
vendored
@@ -272,6 +272,8 @@ def main() -> None:
|
|||||||
subprocess.check_call(['go', 'install', 'golang.org/x/vuln/cmd/govulncheck@latest'])
|
subprocess.check_call(['go', 'install', 'golang.org/x/vuln/cmd/govulncheck@latest'])
|
||||||
with open('govulncheck.sarif', 'wb') as f:
|
with open('govulncheck.sarif', 'wb') as f:
|
||||||
subprocess.check_call(['govulncheck', '-format', 'sarif', './...'], stdout=f)
|
subprocess.check_call(['govulncheck', '-format', 'sarif', './...'], stdout=f)
|
||||||
|
with open('govulncheck.sarif') as f:
|
||||||
|
print(f.read())
|
||||||
elif action == 'gofmt':
|
elif action == 'gofmt':
|
||||||
q = subprocess.check_output('gofmt -s -l tools kittens'.split()).decode()
|
q = subprocess.check_output('gofmt -s -l tools kittens'.split()).decode()
|
||||||
if q.strip():
|
if q.strip():
|
||||||
|
|||||||
Reference in New Issue
Block a user