You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6b16adf
Browse filesBrowse the repository at this point in the historyBrowse files
ci: least-privilege permissions and env-only inputs across workflows
Every workflow now sets top-level permissions: {} and grants scopes per
job, matching .github/workflows/README.md (only sync.yml and drift-check
did before). label-sync passes the PR number through env, creates labels
only when missing instead of recoloring them with --force, drops the
unneeded checkout, and skips fork PRs whose token cannot label.
release-drafter is pinned to a commit SHA (v7.10.0) with job-level
permissions. The drift-check and release-doc-sync composite actions route
inputs and step outputs through env instead of expanding expressions into
shell source.
The sticky-issue step now hands its issues token to the CLI explicitly
(new --issues-token / DRIFT_CHECK_ISSUES_TOKEN), so the clone PAT and the
workflow GITHUB_TOKEN each do their own job.
tests/test_workflow_hygiene.py and an extra composite-action test enforce
both rules going forward.
Closes#117
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/workflows/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,5 +115,6 @@ When a third-party action releases a new version:
115
115
116
116
## Known follow-ups
117
117
118
-
- `release-drafter/release-drafter@v6`in `release-drafter.yml` is still pinned by major tag. It runs under `pull_request_target` but does not check out PR code, so the fork-RCE vector does not apply. SHA-pinning tracked for v1.7.
118
+
- `release-drafter/release-drafter`in `release-drafter.yml` is SHA-pinned (v7.10.0). It runs under `pull_request_target` but never checks out PR code. Dependabot proposes SHA bumps.
119
+
- Both conventions above are enforced by `tests/test_workflow_hygiene.py` (workflows) and `tests/test_composite_action_shape.py` (composite actions).
119
120
- `peter-evans/create-pull-request`in `sync.yml` is SHA-pinned. Update as releases land.
0 commit comments