-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Analysis processing failed" #665
Comments
Normally, there should be a failing code scanning workflow run in the Actions tab of your repository. The fact that the latest scan has a duration of 1s, implies to me that the workflow didn't really run at all (or at least it was aborted shortly after starting). Can you locate which run this was? And add the logs? If this repo is public, can you share the link? |
Hi |
Thanks for the information. I've forwarded this on to the code scanning team and someone should follow up. |
👋 @h3xstream We have few additional expectations from the SARIF file that are stricter than what the standard requires. These are meant to provide a reasonable UI experience. One of those is that each result should have a message. The file you uploaded does not include these values. You can see the full explanation at: https://docs.github.com/en/code-security/secure-coding/integrating-with-code-scanning/sarif-support-for-code-scanning#result-object To further debug this type of problems, you can use the Code Scanning API endpoint to list analyses. These errors are reported under the Hope this helps! |
So, I'm looking at
Thoughts:
code-scanning/analyses/51044536
{
"analysis_key": ".github/workflows/spelling.yml:spelling",
"category": "check-spelling",
"commit_sha": "1903e85d65371f1fb587e60e92fddf822e81a55c",
"created_at": "2022-11-13T06:26:40Z",
"deletable": false,
"environment": "{}",
"error": "SARIF URI scheme \"https\" did not match the checkout URI scheme \"file\",SARIF URI scheme \"https\" did not match the checkout URI scheme \"file\",",
"id": 51044536,
"ref": "refs/pull/25/merge",
"results_count": 0,
"rules_count": 0,
"sarif_id": "21e893e4-631c-11ed-88e3-9a1618496759",
"tool": {
"guid": null,
"name": "check-spelling",
"version": "0.0.20"
},
"url": "https://api.github.com/repos/jsoref/examples-testing/code-scanning/analyses/51044536",
"warning": ""
} The relevant sarif items... appear to be: [
...
{
"ruleId": "unrecognized-spelling",
"ruleIndex": 0,
"message": {
"text": "[haddd](#security-tab) is not a recognized word. \\(unrecognized-spelling\\)"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "https://github.com/jsoref/examples-testing/pull/25#",
"uriBaseId": "%SRCROOT%"
},
"region": {
"startLine": 1,
"startColumn": 6,
"endColumn": 11
}
}
}
]
},
...
{
"ruleId": "unrecognized-spelling",
"ruleIndex": 0,
"message": {
"text": "[fleeze](#security-tab) is not a recognized word. \\(unrecognized-spelling\\)"
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "https://github.com/jsoref/examples-testing/pull/25#",
"uriBaseId": "%SRCROOT%"
},
"region": {
"startLine": 1,
"startColumn": 5,
"endColumn": 11
}
}
}
]
},
...
] |
When we see "Analysis processing failed", where should we look to investigate what failed?
The ouput of the CodeQL action is saying
The text was updated successfully, but these errors were encountered: