Skip to content

Merge dev into stable: CLA workflow update#3015

Closed
aconite33 wants to merge 6 commits intostablefrom
merge-dev-to-stable
Closed

Merge dev into stable: CLA workflow update#3015
aconite33 wants to merge 6 commits intostablefrom
merge-dev-to-stable

Conversation

@aconite33
Copy link
Copy Markdown
Contributor

Summary

Merges the updated CLA workflow from dev into stable (conflict resolved -- took dev version).

  • API-based bot detection (checks GitHub type == "Bot", not string matching)
  • Checks all PR committers, not just the author
  • Null login hardening (unknown committers require CLA)
  • Reduced permissions (dropped actions:write and contents:write)

Already rolled out to all other org repos.

TheTechromancer and others added 6 commits March 17, 2026 03:22
Replace the single PR-author org membership check with a unified step
that iterates all committers on the PR and checks each against:
1. GitHub API account type (type == "Bot" for App accounts)
2. Org membership

Commits with no associated GitHub login are treated as non-exempt
(prevents bypass via spoofed email with no GitHub account).

Tested on aconite33/cla-workflow-test:
- Human committer: correctly required CLA
- github-actions[bot]: correctly skipped via API type check
Tested on aconite33/cla-workflow-test with only pull-requests:write
and statuses:write -- both human CLA and bot skip paths work correctly.
The CLA assistant uses PERSONAL_ACCESS_TOKEN (app token) for writing
signatures to the remote CLA repo, not GITHUB_TOKEN.
Fix CLA workflow to skip bots and check all committers
@aconite33 aconite33 closed this Apr 1, 2026
@aconite33 aconite33 deleted the merge-dev-to-stable branch April 1, 2026 20:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92%. Comparing base (593fe04) to head (68390fb).
⚠️ Report is 8 commits behind head on stable.

Additional details and impacted files
@@          Coverage Diff           @@
##           stable   #3015   +/-   ##
======================================
- Coverage      92%     92%   -0%     
======================================
  Files         416     416           
  Lines       34690   34690           
======================================
- Hits        31667   31647   -20     
- Misses       3023    3043   +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants