mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Print out the govulncheck.sarif file in CI
This commit is contained in:
parent
04d708d597
commit
4771de3f95
1 changed files with 2 additions and 0 deletions
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'])
|
||||
with open('govulncheck.sarif', 'wb') as f:
|
||||
subprocess.check_call(['govulncheck', '-format', 'sarif', './...'], stdout=f)
|
||||
with open('govulncheck.sarif') as f:
|
||||
print(f.read())
|
||||
elif action == 'gofmt':
|
||||
q = subprocess.check_output('gofmt -s -l tools kittens'.split()).decode()
|
||||
if q.strip():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue