Skip to content

security: scope CLA workflow token permissions to job level#16

Merged
opensource-SantanderAI merged 1 commit into
mainfrom
security/cla-job-level-permissions
Jul 8, 2026
Merged

security: scope CLA workflow token permissions to job level#16
opensource-SantanderAI merged 1 commit into
mainfrom
security/cla-job-level-permissions

Conversation

@opensource-SantanderAI

Copy link
Copy Markdown
Contributor

What

Moves the four token scopes CLA Assistant Lite needs (actions, contents, pull-requests, statuses) from workflow level to the cla job, and sets the top-level default to none (permissions: {}).

Why

Least privilege for a pull_request_target workflow: same effective permissions today (single job), but nothing is inherited by future jobs. Addresses the OpenSSF Scorecard Token-Permissions findings for this workflow.

Verification

Identical change merged in SantanderAI/gen-fraud-graph#24 and verified live: a recheck on an open external PR re-ran the CLA bot from main with job-level permissions, concluding success.

Top-level permissions set to none; the four scopes CLA Assistant Lite
requires (actions, contents, pull-requests, statuses) are now granted
only to the cla job. Same effective privilege today (single job), but
future jobs no longer inherit write access and the workflow follows
the least-privilege pattern recommended for pull_request_target.

Same change already merged and verified live in gen-fraud-graph#24.
No behavior change.
@opensource-SantanderAI opensource-SantanderAI requested a review from a team as a code owner July 8, 2026 10:28
@opensource-SantanderAI opensource-SantanderAI merged commit a2218f7 into main Jul 8, 2026
9 checks passed
@opensource-SantanderAI opensource-SantanderAI deleted the security/cla-job-level-permissions branch July 8, 2026 10:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant