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

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

  • Workflow YAML syntax validated
  • Sign portal deployed and reachable (HTTP 200)
  • Org-level reusable workflow merged (codecoradev/.github#1)
  • End-to-end: this PR itself will trigger CLA check on next CI run

Signed-off-by: ajianaz [email protected]

Calls org-level reusable workflow from codecoradev/.github.
Every PR will now be checked for CLA signature.

Signed-off-by: ajianaz <[email protected]>
@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
Reusable workflow needs explicit permissions grant from caller.
Without it, GitHub Actions silently fails (0s, no log).

Signed-off-by: ajianaz <[email protected]>
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 <[email protected]>
@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.

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
repo: context.repo.repo,
issue_number: prNumber,
});

: 'https://codecoradev.github.io/cla',
});

- name: Fail if not signed
@ajianaz
ajianaz merged commit 915170d into develop Aug 8, 2026
14 checks passed
@ajianaz
ajianaz deleted the feat/cla-check-workflow branch August 8, 2026 23:40
ajianaz added a commit that referenced this pull request Aug 13, 2026
* ci(cla): add CLA check workflow

Calls org-level reusable workflow from codecoradev/.github.
Every PR will now be checked for CLA signature.

Signed-off-by: ajianaz <[email protected]>

* ci: re-trigger CLA check (org workflow now merged)

Signed-off-by: ajianaz <[email protected]>

* fix(ci): add permissions to CLA check caller workflow

Reusable workflow needs explicit permissions grant from caller.
Without it, GitHub Actions silently fails (0s, no log).

Signed-off-by: ajianaz <[email protected]>

* fix(ci): inline CLA check workflow (drop reusable dependency)

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 <[email protected]>

* ci: re-trigger CLA check (CDN cache cleared)

Signed-off-by: ajianaz <[email protected]>

* fix(ci): use GitHub API for signatures (raw CDN unreliable)

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 <[email protected]>

* fix(ci): use public REST API for signatures fetch

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 <[email protected]>

* fix(ci): use actions/checkout for signatures fetch

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 <[email protected]>

* fix(ci): use unauthenticated git clone for signatures

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 <[email protected]>

* fix(ci): wget+curl fallback for signatures fetch

.github repo was private — now public. CDN may still cache 404.
Using wget (primary) → curl (fallback) → empty JSON (last resort).

Signed-off-by: ajianaz <[email protected]>

* ci: re-trigger CLA check (.github now public + CDN refreshed)

Signed-off-by: ajianaz <[email protected]>

---------

Signed-off-by: ajianaz <[email protected]>
Co-authored-by: ajianaz <[email protected]>
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