Description
When I attempted to upload a sarif file using the upload-sarif@v1
action, I encountered the following error.
Unable to upload "/home/runner/work/path-to.sarif" as it is not valid SARIF:
- instance.runs[0].tool.driver.language does not match pattern "^[a-zA-Z]{2}|^[a-zA-Z]{2}-[a-zA-Z]{2}]?$"
The language property of my sarif file is ja-JP
, which is a valid form of language tag, but it did not match the regular expression pattern described above.
I think the regular expression pattern for this schema is a mistake.
codeql-action/src/sarif_v2.1.0_schema.json
Line 2342 in cfec2bb
I think this schema is coming from https://github.com/oasis-tcs/sarif-spec .
So, I'm submitting an issue to that repository as well.
oasis-tcs/sarif-spec#488