mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #6683 from tamasvajk/feature/csv-coverage-fix
Only leave CSV coverage updater job enabled on github/codeql
This commit is contained in:
2
.github/workflows/csv-coverage-update.yml
vendored
2
.github/workflows/csv-coverage-update.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
jobs:
|
||||
update:
|
||||
name: Update framework coverage report
|
||||
if: github.event.repository.fork == false
|
||||
if: github.repository == 'github/codeql'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
@@ -8,7 +8,16 @@ import sys
|
||||
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)
|
||||
try:
|
||||
ret = subprocess.run(cmd, capture_output=True,
|
||||
text=True, env=os.environ.copy(), check=True)
|
||||
if (ret.stdout):
|
||||
print(ret.stdout)
|
||||
return ret
|
||||
except subprocess.CalledProcessError as e:
|
||||
if (e.stderr):
|
||||
print(e.stderr)
|
||||
raise e
|
||||
|
||||
|
||||
def subprocess_check_output(cmd):
|
||||
|
||||
Reference in New Issue
Block a user