ci(cla): add CLA check workflow - #966
Merged
Merged
Conversation
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>
🔍 Cora AI Code ReviewReview powered by cora-code · BYOK · MIT |
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>
✅ CodeCoraDev CLA BotThank you @ajianaz! Your CLA is on file. 🎉 Your contribution can now be reviewed. |
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. actions/checkout with sparse-checkout clones .cla/ folder from codecoradev/.github via git protocol — bulletproof. 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>
| repo: context.repo.repo, | ||
| issue_number: prNumber, | ||
| }); | ||
|
|
| : 'https://codecoradev.github.io/cla', | ||
| }); | ||
|
|
||
| - name: Fail if not signed |
Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add CLA check workflow to uteke. 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
.github/workflows/cla-check.yml— 1 caller workflow pointing to org-level reusable workflow.How It Works
Sign portal: https://codecoradev.github.io/cla
Testing
Signed-off-by: ajianaz ajianaz@users.noreply.github.com