Skip to content

Commit 56c0bf9

Browse files
committed
ci: add CLA workflow
1 parent c5ce6e1 commit 56c0bf9

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/cla.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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: write
11+
pull-requests: write
12+
statuses: write
13+
14+
jobs:
15+
CLAAssistant:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Generate token from GitHub App
19+
id: app-token
20+
uses: actions/create-github-app-token@v1
21+
with:
22+
app-id: ${{ secrets.APP_ID }}
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
owner: blacklanternsecurity
25+
repositories: CLA
26+
27+
- name: "CLA Assistant"
28+
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'
29+
uses: contributor-assistant/github-action@v2.6.1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
PERSONAL_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
33+
with:
34+
path-to-signatures: "signatures/version1/cla.json"
35+
path-to-document: "https://github.com/blacklanternsecurity/CLA/blob/main/ICLA.md"
36+
branch: "main"
37+
allowlist: "dependabot[bot],github-actions[bot],renovate[bot]"
38+
remote-organization-name: "blacklanternsecurity"
39+
remote-repository-name: "CLA"

0 commit comments

Comments
 (0)