Skip to content

fix(cla): stop requiring contents: read in the reusable CLA job (main) - #13

Merged
pjhartlieb merged 1 commit into
mainfrom
fix/cla-reusable-drop-contents-read
Oct 27, 2026
Merged

pjhartlieb merged 1 commit into
mainfrom
fix/cla-reusable-drop-contents-read

Conversation

@pjhartlieb

Copy link
Copy Markdown
Contributor

Every CLA run on bbot has failed at startup since 2026-10-06. de82726 made the reusable job ask for contents: read, and a called workflow can't get more than its caller grants. bbot's caller on stable doesn't grant it, and pull_request_target runs the default branch's caller, so bbot can't fix this from dev (bbot#3570 changed dev only).

This removes contents: read from the job. Its GITHUB_TOKEN only comments and sets statuses; signatures are read with the App token. CLA worked without it until 10-06.

Verify after merge: the next bbot CLA run is not startup_failure (gh run list -R blacklanternsecurity/bbot -w cla.yml -L 3).

CLA#11 also edits this file (action pin only); one of the two will need a rebase.

A called workflow can't get more than its caller grants. Since de82726 (2026-10-06) the job asks for contents: read, so callers that don't grant it fail at startup: bbot has on every CLA run since then. pull_request_target runs the default branch's caller, so bbot can't fix this from dev. The job's GITHUB_TOKEN only comments and sets statuses; the signatures are read with the App token.
@pjhartlieb
pjhartlieb merged commit b33192c into main Oct 27, 2026
16 checks passed
@pjhartlieb
pjhartlieb deleted the fix/cla-reusable-drop-contents-read branch October 27, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants