Skip to content

ci(cla): add CLA check workflow - #514

Merged
ajianaz merged 11 commits into
developfrom
feat/cla-check-workflow
Aug 8, 2026
Merged

ci(cla): add CLA check workflow#514
ajianaz merged 11 commits into
developfrom
feat/cla-check-workflow

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

What

Add CLA check workflow to cora-code. Calls org-level reusable workflow from codecoradev/.github.

Why

Every PR must be checked for CLA signature before review. Contributors who haven't signed will get a bot comment with a link to the sign portal.

Changes

  • Add .github/workflows/cla-check.yml — 1 caller workflow pointing to org-level reusable workflow.

How It Works

PR opened → This workflow triggers
         → Calls codecoradev/.github/.github/workflows/cla-check.yml@main
         → Fetches signatures.json from org repo
         → Checks if PR author is in the database
         → Signed? ✅ pass / Not signed? 🔴 fail + bot comment

Sign portal: https://codecoradev.github.io/cla

Testing

Signed-off-by: ajianaz ajianaz@users.noreply.github.com

ajianaz added 4 commits August 8, 2026 23:42
Calls org-level reusable workflow from codecoradev/.github.
Every PR will now be checked for CLA signature.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
Reusable workflow needs explicit permissions grant from caller.
Without it, GitHub Actions silently fails (0s, no log).

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
Reusable workflow path with .github repo caused YAML validation
failure (0s, no jobs). Switching to self-contained inline workflow
that fetches signatures.json from org repo via raw.githubusercontent.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

✅ CodeCoraDev CLA Bot

Thank you @ajianaz! Your CLA is on file. 🎉

Your contribution can now be reviewed.

ajianaz added 7 commits August 8, 2026 23:56
Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
raw.githubusercontent.com returns HTTP 200 with '404: Not Found' body
instead of proper HTTP 404, breaking curl -f flag. Switching to
gh api which properly resolves content via GitHub REST API.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
GITHUB_TOKEN is repo-scoped — cannot access codecoradev/.github.
Switching to unauthenticated public REST API endpoint (60 req/hr
limit is fine for PR-triggered workflow).

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
All CDN/API approaches failed for cross-repo access:
- raw.githubusercontent: CDN cache returns 404 body with HTTP 200
- api.github.com: rate limited unauthenticated, GITHUB_TOKEN 404 cross-repo
- jsdelivr: too slow for freshly pushed content

actions/checkout with sparse-checkout is bulletproof: uses git protocol
to clone .cla/ folder from codecoradev/.github directly.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
GITHUB_TOKEN cannot access codecoradev/.github (repo-scoped).
Switching to plain git clone over HTTPS — repo is public, no auth needed.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
.github repo was private — now public. CDN may still cache 404.
Using wget (primary) → curl (fallback) → empty JSON (last resort).

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
@ajianaz
ajianaz merged commit 6777fa5 into develop Aug 8, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/cla-check-workflow branch August 8, 2026 23:40
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