Skip to content

fix(ci): keep the CLA job inert until CLA_SIGNATURES_TOKEN is set - #213

Merged
IAmBod merged 1 commit into
mainfrom
fix/cla-workflow-guard
Aug 20, 2026
Merged

fix(ci): keep the CLA job inert until CLA_SIGNATURES_TOKEN is set#213
IAmBod merged 1 commit into
mainfrom
fix/cla-workflow-guard

Conversation

@IAmBod

@IAmBod IAmBod commented Aug 20, 2026

Copy link
Copy Markdown
Owner

The CLA workflow merged in #211 before the secret it depends on existed, so
the "CLA Assistant" check has been failing on every pull request since —
contributor-assistant/github-action cannot write the signature file without
CLA_SIGNATURES_TOKEN. #201 and #203 both merged with that check red.

Since nothing requires the check (branch protection needs the repo to be
public or Pro), a permanently-red check is noise, not a gate — and a check
that is always red teaches you to ignore it, which is worse than not having it.

This guards the step on the token being present, so the job is inert until the
secret is added and starts working the moment it is, with no further edit.

Implementation note: the secrets context is not available in an if
expression — actionlint rejects it — so the secret is lifted to a job-level
env var, which is available.

Follow-ups this does not do

  • Adding CLA_SIGNATURES_TOKEN itself (needs a PAT with contents: write).
  • Requiring the "CLA Assistant" check on main — needs branch protection.
  • Pinning contributor-assistant/github-action to a commit SHA rather than the
    @v2.6.1 tag. For a pull_request_target workflow holding contents: write,
    that is the safer habit.

Verification

actionlint clean on all workflows (and it is what caught the first attempt
at this fix).

The CLA workflow landed with #211 before its prerequisite secret existed,
so the "CLA Assistant" check failed on every pull request — the action
cannot write the signature file without the token. With no branch
protection requiring the check, that is noise rather than a gate.

Guard the step on the token being present. The secrets context is not
available in an if expression, so the secret is lifted to a job-level env
var, which is. Once the secret is added the job starts working with no
further change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015aZ5qHYBsde5ysgUrRmbwD
@IAmBod
IAmBod merged commit 1113a0c into main Aug 20, 2026
11 of 12 checks passed
@IAmBod
IAmBod deleted the fix/cla-workflow-guard branch August 20, 2026 12:56
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.

1 participant