Skip to content

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

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

ci(cla): add CLA check workflow#966
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 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

  • 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

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>
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. LLM API error after retries: Unknown error — check workflow logs


Review powered by cora-code · BYOK · MIT

ajianaz added 3 commits August 8, 2026 23:51
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.

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
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>
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
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>
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
Comment thread .github/workflows/cla-check.yml Fixed
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>
Comment thread .github/workflows/cla-check.yml Fixed
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>
Comment thread .github/workflows/cla-check.yml Fixed
.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>
@ajianaz
ajianaz merged commit 915170d 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.

2 participants