-
Notifications
You must be signed in to change notification settings - Fork 508
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: Security policy is not detected in GitHub repository #4463
Comments
This is unfortunately a known and tricky edge case with how Scorecard looks at files in a repository using the archive tarball. You have your SECURITY.md export ignored I'm going to close this in favor of the existing issue, but this is the second or third time to come up this week: As a short term "fix", you can always have a local copy of the repo and pass it with |
@spencerschrock Can I ask why Scorecard uses the export tarball? Those paths are ignored in that repo because the exported tarball is used to publish to Bazel Central Registry. Is there a way we can suppress checks that aren't compatible because of how Scorecard is implemented? As it stands, this bug results in a lower score. |
(I realize speed is a consideration, but I suppose I am asking about this balance with correctness, since in this case, the score is enforced with a strictness that should grant it trust, but instead, it is not accurate, so it is losing trust, and I cannot suppress it to make it accurate.) Our tarball has semantic meaning. So I can add those files back, but it will add them in turn to our release to BCR and for every downloader of the package using tarballs from Bazel. |
It was mainly a speed reason, and that the majority of repositories don't use
I think a |
Describe the bug
According to the documentation for the Security-Policy check, it "works by looking for a file named
SECURITY.md
[...] in a few well-known directories." GitHub's documentation is linked in the remediation steps, and the docs specifically mention that aSECURITY.md
file at the root of a repo should be detected.However, in this repo, there is a root
SECURITY.md
, and the Scorecard action does not detect it:Reproduction steps
I am not sure.
Expected behavior
I expected the security policy to be detected.
The text was updated successfully, but these errors were encountered: