Open shahar-h opened 6 months ago
I'm having some trouble reproducing this issue, I copied the GH workflow you provided to a new repo, and it seems to work for me. (https://github.com/another-rex/oss-fuzz-gen/blob/main/.github/workflows/osv-scanner.yml)
https://github.com/another-rex/oss-fuzz-gen/pull/1
Can you provide a bit more detail or a link to the repository (if it's public) where you are running into this issue?
One thing to check is maybe your main branch might be called master
?
You also have the same warning in Code scanning results / osv-scanner
check:
https://github.com/another-rex/oss-fuzz-gen/pull/1/checks?check_run_id=24407746581
Not sure this can be fixed, I believe the issue is with the fact that we skip the scheduled scan on PRs, and only perform the PR code scanning. So Gtihub can't find the sarif file for the scheduled scan. I also might be misinterpreting what that warning means though.
The warning was disappeared once I renamed job name in osv-scanner-reusable-pr.yml
from scan-pr
to osv-scan
(same as in osv-scanner-reusable.yml
):
https://github.com/shahar-h/osv-scanner-action/commit/28046d1755e91d7bc80ec9af5687999384ca9438
@another-rex any update?
Hmm... even after the fix I recently ran into this again when using the new Github Rulesets feature. Reopening this to investigate further.
I'm using the unified osv-scanner gh workflow in my repo:
I get the following warning on PRs:
I guess that it's related to the fact that the job name is different between reusable workflows:
osv-scan
scan-pr
Can you assist?