-
Notifications
You must be signed in to change notification settings - Fork 0
chore(security): unify Scorecard Action v2.4.4 #1275
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
Open
seonghobae
wants to merge
7
commits into
main
Choose a base branch
from
codex/scorecard-action-v2.4.4-unified-20260824
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
915494d
chore(security): unify Scorecard Action v2.4.4
seonghobae 9fa9690
Merge branch 'main' into codex/scorecard-action-v2.4.4-unified-20260824
opencode-agent[bot] c83420b
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
seonghobae 7db1d90
test(scorecard): cover yaml workflow pins
seonghobae c17d252
test(scorecard): match action uses only
seonghobae 17d0069
Merge branch 'main' into codex/scorecard-action-v2.4.4-unified-20260824
opencode-agent[bot] dd54521
Merge branch 'main' into codex/scorecard-action-v2.4.4-unified-20260824
opencode-agent[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Scorecard Action single-version boundary | ||
|
|
||
| ## Incident boundary | ||
|
|
||
| The central pull-request, scheduled, and combined security workflows all use | ||
| OpenSSF Scorecard, but dependency automation updates workflow references | ||
| independently. A partial bump can leave posture evidence produced by different | ||
| action releases even though the jobs appear to provide one control. | ||
|
|
||
| ## Decision | ||
|
|
||
| Pin every central `ossf/scorecard-action` use to | ||
| `2d1146689b8cda280b9bc96326124645441f03bc`, the commit referenced by the | ||
| official signed v2.4.4 tag. The current release updates Scorecard to v5.5.0 and | ||
| records POST failures without failing the entire action (Open Source Security | ||
| Foundation, 2026). | ||
|
|
||
| GitHub documents that a full commit SHA is unique and immutable and should be | ||
| verified against the action repository (GitHub, n.d.). A repository-wide | ||
| contract therefore parses every central workflow occurrence, rejects malformed | ||
| pins, and admits only the reviewed v2.4.4 SHA and tag. Workflow permissions, | ||
| events, arguments, SARIF semantics, thresholds, and fail-closed gates are | ||
| unchanged. | ||
|
|
||
| ## References | ||
|
|
||
| GitHub. (n.d.). *Using pre-written building blocks in your workflow*. | ||
| Retrieved August 24, 2026, from | ||
| https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/find-and-customize-actions | ||
|
|
||
| Open Source Security Foundation. (2026, July 23). *Scorecard Action v2.4.4* | ||
| [Software release]. | ||
| https://github.com/ossf/scorecard-action/releases/tag/v2.4.4 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| """Keep every central OpenSSF Scorecard Action use on one reviewed release.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import re | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| REPO_ROOT = Path(__file__).resolve().parents[1] | ||
| SCORECARD_SHA = "2d1146689b8cda280b9bc96326124645441f03bc" | ||
| SCORECARD_TAG = "v2.4.4" | ||
| _PIN = re.compile( | ||
| r"ossf/scorecard-action@(?P<sha>[^\s]+)\s+#\s+(?P<tag>v[^\s]+)" | ||
| ) | ||
|
|
||
|
|
||
| def test_all_scorecard_actions_share_the_reviewed_current_release() -> None: | ||
| """Reject partial bumps, malformed refs, and stale Scorecard releases.""" | ||
| observed: set[tuple[str, str]] = set() | ||
|
|
||
| for path in sorted((REPO_ROOT / ".github/workflows").glob("*.y*ml")): | ||
| for line_number, line in enumerate( | ||
| path.read_text(encoding="utf-8").splitlines(), start=1 | ||
| ): | ||
| if "uses:" not in line or "ossf/scorecard-action@" not in line: | ||
| continue | ||
| match = _PIN.search(line) | ||
| assert match is not None, f"malformed Scorecard pin: {path}:{line_number}" | ||
| observed.add((match.group("sha"), match.group("tag"))) | ||
|
|
||
| assert observed == {(SCORECARD_SHA, SCORECARD_TAG)} | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.