Skip to content

fix(ci): keep workflows in source archives and scan pull requests - #147

Merged
Patel230 merged 1 commit into
mainfrom
fix/source-archive-hygiene
Dec 1, 2026
Merged

Patel230 merged 1 commit into
mainfrom
fix/source-archive-hygiene

Conversation

@Patel230

@Patel230 Patel230 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Root cause of the relay-only Scorecard failures: .gitattributes marked .github/ as export-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.

  • Drop .github export-ignore (verified: git archive HEAD now contains .github/workflows/).
  • Add a regression test that inspects a real git archive HEAD (note: git check-attr does not resolve directory patterns the same way, so it cannot guard this).
  • Run CodeQL on pull_request as well as push/weekly so analyses exist for PR head commits — the set Scorecard's SAST check inspects.

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.
@Patel230
Patel230 merged commit 5030485 into main Dec 1, 2026
20 checks passed
@Patel230
Patel230 deleted the fix/source-archive-hygiene branch December 1, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant