-
Notifications
You must be signed in to change notification settings - Fork 351
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
Failed to upload database for java: HttpError: Not Found #912
Comments
Hi @remkop, thanks for the report, and also for picocli, we're happy users of the library for the CodeQL CLI ;-) Looking at the logs, it seems like the analysis results (in SARIF format) were successfully uploaded:
The error message is from the codeql-action's attempt to store a copy of the CodeQL database. If I'm not mistaken this step is optional. I think it is for caching a copy of the intermediate CodeQL database for a new feature that allows running custom CodeQL queries directly on a repository. As far as I know this feature is only enabled for a limited set of repositories. The codeql-action has a |
Hi @remkop! We've done a bit of investigation and think we know what's happening here. It looks like the analysis is succeeding, but an optional step of uploading the database is failing. This shouldn't affect the visibility of the overall results, but if you want to remove this warning I'm happy to report it should be fixed in the latest version of the CodeQL Action, so if you update your pinned commit to I'm not that familiar with the ossf/scorecard project, but it looks like there are two things it's currently warning about. "1 commits out of 30 are checked with a SAST tool" seems to be because it's looking at each recent commit and seeing if it has a Code Scanning check run on it. Because the pull request that added the CodeQL workflow is the most recent one to be merged it's only seeing the check on the most recent commit. Hopefully as more pull requests are merged, this warning will eventually disappear. Secondly there's the "CodeQL tool not detected" warning. This looks like it's implemented by doing this code search https://github.com/remkop/picocli/search?q=github%2Fcodeql-action%2Fanalyze+path%3A%2F.github%2Fworkflows which does seem to return no results (at the time of writing this). I'm not sure I know enough about our search implementation to say why it does not find the workflow, but possibly this check could be implemented in a different way, for example fetching all workflows and then checking if they use the expected action. |
fyi, for the search implementation and scorecard: we're going to move away from the sear API and parse the workflow, so ignore this problem for now. It'll be fixed in next update. |
Describe the bug
I enabled CodeQL but did not see SAST being recognized when running scorecard in docker:
@laurentsimon noticed
It appears that the upload fails at the end of the "Perform CodeQL Analysis" job in the
.github/workflows/codeql-analysis.yml
in my repo:I initially thought this was a ossf scorecard issue and reported it as such in ossf/scorecard#1605, but the underlying issue may be in the codeql-action.
Relevant section from the log follows below:
The text was updated successfully, but these errors were encountered: