Skip to content

Commit 5f3a61a

Browse files
lis0x90lis
authored andcommitted
"chore: update CLA workflow"
1 parent 84eaa08 commit 5f3a61a

File tree

2 files changed

+23
-42
lines changed

2 files changed

+23
-42
lines changed

.github/cla.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/cla.yaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,32 @@ name: CLA Assistant
33
on:
44
issue_comment:
55
types: [created]
6-
pull_request:
6+
pull_request_target:
77
types: [opened, closed, synchronize]
88

99
permissions:
10-
actions: write
1110
contents: read
12-
pull-requests: write
13-
statuses: write
1411

1512
jobs:
16-
cla_assistant:
17-
uses: Netcracker/qubership-workflow-hub/.github/workflows/cla.yaml@main
18-
secrets:
19-
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
13+
CLAAssistant:
14+
permissions:
15+
actions: write
16+
contents: write
17+
pull-requests: write
18+
statuses: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: "CLA Assistant"
22+
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'
23+
uses: contributor-assistant/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }}
27+
with:
28+
path-to-signatures: 'signatures/version1/cla.json'
29+
path-to-document: 'https://github.com/Netcracker/qubership-github-workflows/blob/main/CLA/cla.md'
30+
# branch should not be protected
31+
branch: 'main'
32+
allowlist: NetcrackerCLPLCI,web-flow,bot*
33+
remote-repository-name: cla-storage
34+
remote-organization-name: Netcracker

0 commit comments

Comments
 (0)