Repository navigation
Docs: Correct Scorecard private-repo permissions - #152
Merged
ModeSevenIndustrialSolutions merged 1 commit intoOct 15, 2026
Merged
ModeSevenIndustrialSolutions merged 1 commit into
ModeSevenIndustrialSolutions merged 1 commit into
Conversation
The Scorecard example and lane told callers that a private repository recovers the commit and SAST signals by granting issues, pull-requests and checks read in the caller. That cannot work: a called job that declares permissions receives exactly what it declares, capped by the caller, and the scan job declares none of those scopes. Replace the advice with an accurate statement of the limitation in the example's permissions block and DEPLOYMENT NOTES and in the scan job. Comments only; no permission changes. Co-authored-by: Copilot <[email protected]> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The comment-only changes match the issue’s requirements and leave all permission keys and values unchanged.
0 open findings
What changed in this PR
Corrects misleading private-repository permission advice for the OpenSSF Scorecard workflow, addressing #151 without changing workflow behavior.
Changes:
- Clarifies that extra caller permissions cannot expand the scan job’s declared permissions.
- Updates deployment notes and removes ineffective commented-out permission suggestions.
| File | Description |
|---|---|
examples/openssf-scorecard/github.yaml |
Corrects deployment notes and caller permission guidance. |
.github/workflows/openssf-scorecard.yaml |
Documents the scan job’s private-repository permission limitations. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ModeSevenIndustrialSolutions
approved these changes
Oct 15, 2026
ModeSevenIndustrialSolutions
merged commit Oct 15, 2026
5513fde
into
lfreleng-actions:main
11 checks passed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #151
Authored by an AI agent; human review required
claude-opus-5.5via GitHub Copilot CLI179b57cc41fbdae90d68237b418539d33e5ba091bash tests/workflow-steps.shprek run --files examples/openssf-scorecard/github.yaml .github/workflows/openssf-scorecard.yamlaislop scan --changes --jsongit commit -s (pre-commit and commit-msg hooks)The
github-code-monkey-botworkflow opened this pull request.Nobody has merged it; a maintainer must review it first.
This pipeline cannot yet revise its own pull requests, so a maintainer must act on any review findings.
What changed
The OpenSSF Scorecard example and lane told callers that a private repository recovers Scorecard's commit and SAST signals by granting
issues: read,pull-requests: readandchecks: readin the caller. That cannot work: a called job that declarespermissions:receives exactly what it declares, capped by the caller, and the lane'sscanjob declares none of those scopes.This PR corrects the comments only. No
permissions:key or value changes.examples/openssf-scorecard/github.yaml: the six lines afteractions: readbecome the wording the migrated callers already use (CI: Move Scorecard to security-workflows lane actions-template#268, CI: Move Scorecard to security-workflows lane cbom-action#16). TheDEPLOYMENT NOTESbullet also claimed private repositories need "the extra read permissions noted below"; it now states the limitation instead..github/workflows/openssf-scorecard.yaml: thescanjob comment now says the job does not requestissues,pull-requestsorchecks, so Scorecard loses the signals that need them on a private repository, and a caller grant cannot change that.README.mdanddocs/make no such claim, so they are unchanged.Validation
bash tests/workflow-steps.sh: exit 0, all 112 cases passed.prek run --fileson both changed files: exit 0 (yamllint, actionlint, zizmor, codespell, reuse all passed). The commit hooks, gitlint included, also passed.aislop scan --changes --json: exit 0, emptydiagnosticsarray.For reviewers
DEPLOYMENT NOTESedit goes slightly beyond the two locations the issue names. The issue's step 3 asks for it: the old text pointed readers to the removed advice.issues/pull-requests/checkslines are removed from the example rather than kept. Uncommenting them in a caller has no effect, so keeping them would mislead.