Skip to content

Commit f924f7a

Browse files
authored
Merge pull request #1671 from splunk/cla-check-workflow
Add CLA check
2 parents bc91295 + 66b44fb commit f924f7a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/cla-check.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Agreements"
2+
3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
7+
on:
8+
issue_comment:
9+
types: [ created ]
10+
pull_request_target:
11+
types: [ opened, closed, synchronize ]
12+
13+
jobs:
14+
ContributorLicenseAgreement:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: "CLA Assistant"
18+
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'
19+
uses: cla-assistant/[email protected]
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
23+
with:
24+
path-to-signatures: "signatures/version1/cla.json"
25+
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CLA.md" # e.g. a CLA or a DCO document
26+
branch: "main"
27+
allowlist: dependabot[bot]
28+
remote-organization-name: splunk
29+
remote-repository-name: cla-agreement
30+
CodeOfConduct:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: "COC Assistant"
34+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the Code of Conduct and I hereby accept the Terms') || github.event_name == 'pull_request_target'
35+
uses: cla-assistant/[email protected]
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
39+
with:
40+
path-to-signatures: "signatures/version1/coc.json"
41+
path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CODE_OF_CONDUCT.md" # e.g. a COC or a DCO document
42+
branch: "main"
43+
allowlist: dependabot[bot]
44+
remote-organization-name: splunk
45+
remote-repository-name: cla-agreement
46+
custom-pr-sign-comment: "I have read the Code of Conduct and I hereby accept the Terms"
47+
create-file-commit-message: "For example: Creating file for storing COC Signatures"
48+
signed-commit-message: "$contributorName has signed the COC in #$pullRequestNo"
49+
custom-notsigned-prcomment: "All contributors have NOT signed the COC Document"
50+
custom-allsigned-prcomment: "****CLA Assistant Lite bot**** All contributors have signed the COC ✍️ ✅"

0 commit comments

Comments
 (0)