Skip to content

Enable Microsoft CLA bot for external PRs#1

Open
mayankfz wants to merge 1 commit into
microsoft:aclmainfrom
mayankfz:mayansingh/enable-cla-bot
Open

Enable Microsoft CLA bot for external PRs#1
mayankfz wants to merge 1 commit into
microsoft:aclmainfrom
mayankfz:mayansingh/enable-cla-bot

Conversation

@mayankfz
Copy link
Copy Markdown

@mayankfz mayankfz commented May 29, 2026

Task - https://dev.azure.com/mariner-org/ACL/_workitems/edit/20352

  • Add .github/workflows/cla.yml to run Microsoft CLA check on PRs
  • Update CONTRIBUTING.md with CLA requirement documentation
  • Allowlist bot accounts and Microsoft org members
  • CLA signatures stored in signatures/version1/cla.json

Inspiration - https://github.com/contributor-assistant/github-action#configure-contributor-license-agreement-within-two-minutes

Azl3 uses the Microsoft CLA bot GitHub App directly. The bot runs the license/cla status check automatically on PRs without needing any workflow file in the repo. If we want to match Azl3 exactly, we would need to remove the cla.yml and just have the Microsoft CLA GitHub App installed on the repo (admin set up). The workflow approach is a fallback that works without the app.

@jiria
Copy link
Copy Markdown
Member

jiria commented May 30, 2026

Please rebase and retarget to aclmain.

@mayankfz mayankfz force-pushed the mayansingh/enable-cla-bot branch from 5e6cdd0 to e9833e3 Compare June 1, 2026 06:23
@mayankfz mayankfz changed the base branch from main to aclmain June 1, 2026 06:23
@mayankfz mayankfz marked this pull request as ready for review June 2, 2026 07:45
Copilot AI review requested due to automatic review settings June 2, 2026 07:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a GitHub Actions workflow to automate Microsoft CLA checks for PRs and enable manual recheck via comment.

Changes:

  • Introduces a new cla.yml workflow triggered on pull_request_target and specific issue_comment commands
  • Configures the Microsoft CLA Assistant action to record signatures and lock PRs after merge
  • Grants workflow permissions required for status updates and signature file changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/cla.yml Outdated
Comment thread .github/workflows/cla.yml
Comment thread .github/workflows/cla.yml
Comment thread .github/workflows/cla.yml Outdated
- Add .github/workflows/cla.yml to run Microsoft CLA check on PRs
- Update CONTRIBUTING.md with CLA requirement documentation
- Allowlist bot accounts and Microsoft org members
- CLA signatures stored in signatures/version1/cla.json
@mayankfz mayankfz force-pushed the mayansingh/enable-cla-bot branch from e9833e3 to 335eac2 Compare June 2, 2026 09:26
Comment thread .github/workflows/cla.yml
Comment thread .github/workflows/cla.yml
github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to limit when does this action gets executed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action is already gated:

For issue_comment: only triggers on PR comments with exact "recheck" or CLA sign text
For pull_request_target: runs on all PRs, but the allowlist auto-passes bots and the CLA portal auto-passes linked Microsoft accounts. Are we looking for something more specific ?

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