-
Notifications
You must be signed in to change notification settings - Fork 498
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
BUG: CI-Tests: internal error: internal error: Client.Repositories.ListStatuses: error getting commit statuses #3701
Comments
@adam-moss I tried to recreate and I wasn't able to. Can you please add some specifics as to what of repository? Did it have any code? Did it have any commits? Thanks |
This may be relevant #3581 (comment) |
I hit this today with Scorecard 4.13.1 at https://gitlab.com/gitlab-ci-utils/gitlab-pmd-cpd (and most of the others I tried in the same group, which are all public). The error was under CI-Tests: internal error: internal error: Client.Repositories.ListStatuses: https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#ci-tests
error getting commit statuses: GET
https://gitlab.com/api/v4/projects/22151381/repository/commits/statuses
404 {message: 404 Commit Not Found} The listed URL at |
We don't actually set the endpoint ourselves, we use a library. scorecard/clients/gitlabrepo/statuses.go Lines 35 to 43 in b3ad602
The problem seems to be that scorecard/checks/raw/ci_tests.go Lines 61 to 66 in b3ad602
Based on the graphQL documentation: https://docs.gitlab.com/ee/api/graphql/reference/#mergerequest: scorecard/clients/gitlabrepo/graphql.go Lines 64 to 96 in b3ad602
I assume we actually want |
After doing a few tests with the GraphQL API, yes
|
Thanks for the info, we've run into issues with different merge styles before, so knowing about the fast-forward merge for GitLab is helpful. Aside from being
If this experimentation was using the Scorecard codebase, or you're interested, feel free to send a PR. Or someone else can get to it |
Describe the bug
A clear and concise description of what the bug is.
Reproduction steps
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
scorecard
completes successfully with no errors reported.Additional context
I have built
scorecard
from source with the latest commit on themain
branch.The text was updated successfully, but these errors were encountered: