Skip to content
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: Fuzzing check: OSS-Fuzz detection intermittent #2670

Closed
spencerschrock opened this issue Feb 15, 2023 · 0 comments · Fixed by #2719
Closed

BUG: Fuzzing check: OSS-Fuzz detection intermittent #2670

spencerschrock opened this issue Feb 15, 2023 · 0 comments · Fixed by #2719
Assignees
Labels
kind/bug Something isn't working

Comments

@spencerschrock
Copy link
Member

spencerschrock commented Feb 15, 2023

Describe the bug
The Fuzzing check intermittently fails to search the google/oss-fuzz repo. This is causing the check to fail at the CLI as well as the integration tests to fail.

Reproduction steps
Steps to reproduce the behavior:

  1. scorecard --repo ossf/scorecard --checks Fuzzing --show-details --format json | jq
  2. The reason string no longer mentions the project being fuzzed with OSSFuzz despite the project being fuzzed: link

Expected behavior

The project should detect OSSFuzz

Additional context

I think it's a problem with the code search API. The Fuzzing check makes a code search API request like the following:

curl \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer $GITHUB_AUTH_TOKEN"\
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/search/code?q=github.com+ossf+scorecard+repo:google/oss-fuzz

Using the search box on the website shows valid results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant