Skip to content

Commit 05983fd

Browse files
authored
Add CLA Assistant GitHub workflow (#659)
1 parent 0724288 commit 05983fd

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/workflows/cla.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened, closed, synchronize]
7+
8+
permissions:
9+
actions: write
10+
contents: read
11+
pull-requests: write
12+
statuses: write
13+
14+
jobs:
15+
ContributorLicenseAgreement:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: "CLA Assistant"
19+
if: (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'
20+
uses: cla-assistant/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
24+
with:
25+
remote-organization-name: splunk
26+
remote-repository-name: cla-agreement
27+
branch: main
28+
path-to-signatures: signatures/version1/cla.json
29+
path-to-document: https://github.com/splunk/cla-agreement/blob/main/CLA.md
30+
allowlist: dependabot

CONTRIBUTING.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ GitHub provides additional documentation on [forking a
7474
repository](https://help.github.com/articles/fork-a-repo/) and [creating a pull
7575
request](https://help.github.com/articles/creating-a-pull-request/).
7676

77+
Before your contribution can be accepted, you will be asked to sign our
78+
[Splunk Contributor License Agreement (CLA)](https://github.com/splunk/cla-agreement/blob/main/CLA.md).
79+
7780
## Finding contributions to work on
7881

7982
Looking at the existing issues is a great way to find something to contribute
@@ -85,7 +88,3 @@ any 'help wanted' issues is a great place to start.
8588

8689
See the [LICENSE](LICENSE) file for our repository's licensing. We will ask you to
8790
confirm the licensing of your contribution.
88-
89-
### Contributor License Agreement
90-
91-
Before contributing, you must sign the [Splunk Contributor License Agreement (CLA)](https://www.splunk.com/en_us/form/contributions.html).

0 commit comments

Comments
 (0)