Skip to content

Commit d6bb4ab

Browse files
authored
Bump scorecard-action to 2.5.0 + revert local workaround (#457)
* Bump scorecard-action to 2.5.0 * Revert "Filter Scorecard false positives for same-repository actions (#367)" This reverts commit 6ac006a.
1 parent fdcb16e commit d6bb4ab

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

‎.github/workflows/scorecard.yml‎

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
persist-credentials: false
6969

70-
- uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
70+
- uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
7171
with:
7272
results_file: results.sarif
7373
results_format: sarif
@@ -119,26 +119,8 @@ jobs:
119119
# The rule definitions stay in place so that code scanning closes the
120120
# alerts already raised for them rather than leaving them stale.
121121
jq --arg included "$INCLUDED_CHECKS" '
122-
# Scorecard misclassifies GitHub self-repository references as unpinned
123-
# third-party dependencies: https://github.com/ossf/scorecard/issues/5232
124-
# Remove this filter after that fix ships in the Scorecard version used here:
125-
# https://github.com/open-telemetry/shared-workflows/issues/366
126-
def self_repository_reference:
127-
((.ruleId // "") == "PinnedDependenciesID")
128-
and any(
129-
.locations[]?;
130-
((.physicalLocation.region.snippet.text // "") | any(split("\n")[]; test("^\\s*\\$/")))
131-
);
132122
($included | split("\n") | map(select(length > 0))) as $keep
133-
| .runs |= map(
134-
.results = (
135-
(.results // [])
136-
| map(select(
137-
((.ruleId // "") | IN($keep[]))
138-
and (self_repository_reference | not)
139-
))
140-
)
141-
)
123+
| .runs |= map(.results = ((.results // []) | map(select((.ruleId // "") | IN($keep[])))))
142124
' results.sarif > filtered.sarif
143125
echo "kept $(jq '[.runs[] | (.results // [])[]] | length' filtered.sarif) of $(jq '[.runs[] | (.results // [])[]] | length' results.sarif) results"
144126

‎scorecard/README.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,4 @@ Only these checks are uploaded to code scanning:
5454
- `PinnedDependenciesID`
5555
- `TokenPermissionsID`
5656

57-
`PinnedDependenciesID` findings for
58-
[GitHub's `$/` same-repository syntax](https://github.blog/changelog/2026-07-30-reference-same-repository-actions-with-self-repository-syntax/)
59-
are omitted from the code scanning upload because Scorecard currently
60-
[misclassifies them as unpinned third-party dependencies](https://github.com/ossf/scorecard/issues/5232).
61-
Other pinned-dependency findings are still uploaded.
62-
6357
By default, the full result is still published, so the badge and the public `api.scorecard.dev` entry are unaffected. Runs with `skip-publication: true` do not update the badge or public entry.

0 commit comments

Comments
 (0)