-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): bump ossf/scorecard-action from 2.4.3 to 2.4.4 #920
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
Closed
dependabot
wants to merge
9
commits into
main
from
dependabot/github_actions/main/ossf/scorecard-action-2.4.4
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bec3796
chore(deps): bump ossf/scorecard-action from 2.4.3 to 2.4.4
dependabot[bot] d7ca779
test(scorecard): pin one action SHA across PR and scheduled scans
seonghobae c0079d1
fix(coverage): accept only bounded relative requirement includes
seonghobae c94deed
chore(scorecard): drop unrelated materializer delta
seonghobae 0b341f1
chore(scorecard): restore bounded dependency-update scope
seonghobae 3ed996c
merge(main): resolve DIRTY #920 against current main
seonghobae ed08a94
Merge main and refresh Scorecard pin contract
seonghobae e551215
Merge branch 'main' into dependabot/github_actions/main/ossf/scorecar…
opencode-agent[bot] b9a0cc3
Merge branch 'main' into dependabot/github_actions/main/ossf/scorecar…
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,25 @@ | ||
| # Scorecard action single-version pin | ||
|
|
||
| ## Incident and buyer impact | ||
|
|
||
| Dependabot bumps `ossf/scorecard-action` one workflow at a time. If the | ||
| PR visibility job and the default-branch analysis job execute different | ||
| SHAs, a green Scorecard gate does not prove the scheduled posture scan | ||
| used the reviewed action. | ||
|
|
||
| ## Decision | ||
|
|
||
| Pin both `scorecard-pr.yml` and `scorecard-analysis.yml` to | ||
| `2d1146689b8cda280b9bc96326124645441f03bc` (v2.4.4). A contract test | ||
| rejects a split. | ||
|
|
||
| CWE-829 forbids including functionality from an untrusted or unreviewed | ||
| control sphere (MITRE, 2026). A second SHA is a second control sphere. | ||
|
|
||
| ## References | ||
|
|
||
| MITRE. (2026). *CWE-829: Inclusion of functionality from untrusted | ||
| control sphere*. https://cwe.mitre.org/data/definitions/829.html | ||
|
|
||
| OpenSSF. (n.d.). *Scorecard action*. GitHub. Retrieved August 13, 2026, | ||
| from https://github.com/ossf/scorecard-action |
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,35 @@ | ||
| """Pin OpenSSF Scorecard to one immutable action SHA across workflows.""" | ||
|
|
||
| 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@([0-9a-f]{40}) # (v\d+\.\d+\.\d+)" | ||
| ) | ||
|
|
||
|
|
||
| def test_scorecard_pr_and_analysis_share_one_action_sha() -> None: | ||
| """CWE-829: PR and scheduled Scorecard must execute one immutable SHA. | ||
|
|
||
| A Dependabot bump that updates only one workflow would analyze PRs with | ||
| a different trusted action than the default-branch posture job. | ||
| """ | ||
| shas: set[str] = set() | ||
| tags: set[str] = set() | ||
| for filename in ("scorecard-pr.yml", "scorecard-analysis.yml"): | ||
| workflow = (REPO_ROOT / ".github/workflows" / filename).read_text( | ||
| encoding="utf-8" | ||
| ) | ||
| pins = _PIN.findall(workflow) | ||
| assert pins, f"{filename} has no pinned ossf/scorecard-action" | ||
| for sha, tag in pins: | ||
| shas.add(sha) | ||
| tags.add(tag) | ||
|
|
||
| assert shas == {SCORECARD_SHA} | ||
| assert tags == {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.