-
Notifications
You must be signed in to change notification settings - Fork 2
Enable Microsoft CLA bot for external PRs #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: aclmain
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: "Microsoft CLA" | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_target: | ||
| types: [opened, closed, synchronize] | ||
|
|
||
| permissions: | ||
|
jiria marked this conversation as resolved.
|
||
| contents: write # Required to store CLA signatures | ||
| pull-requests: write # Required to comment on PRs | ||
| statuses: write # Required to set CLA status check | ||
|
|
||
| jobs: | ||
| cla: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: "Microsoft CLA Assistant" | ||
| if: | | ||
| (github.event_name == 'issue_comment' && github.event.issue.pull_request && | ||
| (github.event.comment.body == 'recheck' || | ||
| github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA')) || | ||
| github.event_name == 'pull_request_target' | ||
|
mayankfz marked this conversation as resolved.
|
||
| uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to limit when does this action gets executed?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| with: | ||
| path-to-signatures: "signatures/version1/cla.json" | ||
| path-to-document: "https://cla.opensource.microsoft.com/microsoft/azure-container-linux" | ||
| branch: "aclmain" | ||
| allowlist: "bot*,*[bot],microsoft-github-operations-bot,dependabot*,msftbot,azure-pipelines-bot" | ||
| lock-pullrequest-aftermerge: true | ||
Uh oh!
There was an error while loading. Please reload this page.