Generate the "Submit SARIF after failure" workflow

This commit is contained in:
Henry Mercer 2022-11-25 18:00:42 +00:00
parent d0517be03a
commit 24fd4c0f4e
4 changed files with 104 additions and 35 deletions

View file

@ -115,7 +115,8 @@ for file in os.listdir('checks'):
checkJob[key] = checkSpecification[key]
checkJob['env'] = checkJob.get('env', {})
checkJob['env']['CODEQL_ACTION_TEST_MODE'] = True
if 'CODEQL_ACTION_TEST_MODE' not in checkJob['env']:
checkJob['env']['CODEQL_ACTION_TEST_MODE'] = True
checkName = file[:len(file) - 4]
with open(f"../.github/workflows/__{checkName}.yml", 'w') as output_stream: