Skip to content

ci: restrict CLA workflow token permissions and pin cla-check - #727

Merged
josephschorr merged 1 commit into
mainfrom
harden-cla-workflow
Nov 9, 2026
Merged

josephschorr merged 1 commit into
mainfrom
harden-cla-workflow

Conversation

@josephschorr

Copy link
Copy Markdown
Member

Ahead of GitHub blocking pull_request_target by default on public repos (enforced 2026-12-02), this hardens the CLA workflow, which needs that trigger. The workflow is now explicitly allowed through an authzed org Actions event policy.

  • Adds an explicit least-privilege permissions: block. The repo default token is write, which pull_request_target would grant on every fork PR.
  • Pins authzed/actions/cla-check to a commit SHA instead of @main. The cla-check code is unchanged.

This matches authzed/spicedb's cla.yaml.

See https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tstirrat15 tstirrat15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephschorr
josephschorr merged commit 5c4c322 into main Nov 9, 2026
14 checks passed
@josephschorr
josephschorr deleted the harden-cla-workflow branch November 9, 2026 17:38
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 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.

3 participants