mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Add CSV coverage PR commenter
This commit is contained in:
@@ -2,10 +2,12 @@ import subprocess
|
||||
import os
|
||||
import csv
|
||||
import sys
|
||||
import shlex
|
||||
|
||||
|
||||
def subprocess_run(cmd):
|
||||
"""Runs a command through subprocess.run, with a few tweaks. Raises an Exception if exit code != 0."""
|
||||
print(shlex.join(cmd))
|
||||
return subprocess.run(cmd, capture_output=True, text=True, env=os.environ.copy(), check=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user