Skip to content

fix(ci): pin ossf/scorecard-action to a real tag (v2.4.4) - #247

Merged
gtauzin merged 2 commits into
mainfrom
fix-scorecard-pin
Jul 26, 2026
Merged

fix(ci): pin ossf/scorecard-action to a real tag (v2.4.4)#247
gtauzin merged 2 commits into
mainfrom
fix-scorecard-pin

Conversation

@gtauzin

@gtauzin gtauzin commented Jul 26, 2026

Copy link
Copy Markdown
Member

The Scorecard workflow shipped with ossf/scorecard-action@v2, which is not a real ref (the action publishes only vX.Y.Z tags), so every generated public repo's Scorecard run failed at load with "unable to find version v2". Pins to v2.4.4.

The 7 fleet repos were already hotfixed directly on main to stop the red; this fixes the template so future generations + fan-outs are correct.

Also adds test_expected_action_pins_actually_resolve_on_github (slow, network-gated): the existing pin test checks self-consistency but not that a tag exists on GitHub, which is exactly how @v2 shipped green. The new test resolves every pinned ref, closing that gap.

gtauzin added 2 commits July 26, 2026 11:05
The Scorecard workflow shipped with ossf/scorecard-action@v2, but that action
publishes no floating vN tag -- only vX.Y.Z. Every generated public repo's Scorecard
run failed at load with 'unable to find version v2'. Pin to v2.4.4 (Renovate keeps it
current).

Also add test_expected_action_pins_actually_resolve_on_github (slow, network-gated):
the existing pin test only checks self-consistency + the EXPECTED_ACTION_PINS map, so a
non-existent tag passed every test and failed only at runtime. The new test resolves
each pinned ref against GitHub so this cannot recur silently.
The new test failed in the full-suite CI job: that env has no GH_TOKEN, so every
'gh api' call returns an auth error, which the skip logic misread as 'pin does not
resolve'. Fix: fail ONLY on a definitive 404/not-found; skip when a ref cannot be
checked (unauthenticated gh, rate limit, or offline). Verified: passes locally with an
authenticated gh, skips cleanly with none.
@gtauzin
gtauzin merged commit 1af22e3 into main Jul 26, 2026
15 checks passed
@gtauzin
gtauzin deleted the fix-scorecard-pin branch July 26, 2026 09:25
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