Skip to content

Commit 46cd1ac

Browse files
authored
ci: treat Branch-Protection as a one-maintainer Scorecard residual (#44)
A second human reviewer is not available in this org. Keep the live gate at one review plus the maintainer bypass, and strip BranchProtectionID from the code-scanning upload so weekly Scorecard does not reopen it.
1 parent 9b0b4c3 commit 46cd1ac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/security-scorecard.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ jobs:
3535
path: scorecard-results.sarif
3636
retention-days: 5
3737
# Full Scorecard still publishes to scorecard.dev. These checks cannot
38-
# reach 10 on a one-maintainer template (second human reviewer, CII badge
39-
# signup, historical CI/SAST coverage, fuzzing). Strip them from the
40-
# GitHub code-scanning upload so weekly runs do not reopen accepted risk.
38+
# reach 10 on a one-maintainer org (no second reviewer, CII badge signup,
39+
# historical CI/SAST coverage, fuzzing). Strip them from the GitHub
40+
# code-scanning upload so weekly runs do not reopen accepted risk.
4141
- name: Filter residual Scorecard rules from code scanning
4242
run: |
4343
jq '
4444
.runs |= map(
4545
.results |= map(
4646
select(
4747
.ruleId as $id
48-
| ["CodeReviewID", "CIIBestPracticesID", "SASTID", "CITestsID", "FuzzingID"]
48+
| ["CodeReviewID", "CIIBestPracticesID", "SASTID", "CITestsID", "FuzzingID", "BranchProtectionID"]
4949
| index($id)
5050
| not
5151
)

0 commit comments

Comments
 (0)