Repository navigation
fix(ci): keep workflows in source archives and scan pull requests - #147
Merged
Merged
Conversation
GitHub source tarballs honour export-ignore, and OpenSSF Scorecard reads workflow files from those tarballs. Marking .github/ as export-ignore made every tarball-based check see zero workflows: SAST scored 0 and Token-Permissions, Pinned-Dependencies, Dangerous-Workflow, Packaging and Signed-Releases came back inconclusive. Drop that rule and add a check-attr regression test. CodeQL now also runs on pull_request so analyses exist for PR head commits, which is what Scorecard's SAST check inspects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause of the relay-only Scorecard failures:
.gitattributesmarked.github/asexport-ignore, so every GitHub source tarball omitted the workflows. Scorecard reads files from that tarball, so it saw zero workflows: SAST scored 0, and Token-Permissions, Pinned-Dependencies, Dangerous-Workflow, Packaging and Signed-Releases came back inconclusive. Reflect's template never had that rule, which is why only relay was affected..github export-ignore(verified:git archive HEADnow contains.github/workflows/).git archive HEAD(note:git check-attrdoes not resolve directory patterns the same way, so it cannot guard this).pull_requestas well as push/weekly so analyses exist for PR head commits — the set Scorecard's SAST check inspects.