Skip to content

Commit 5584e5c

Browse files
Merge pull request #21 from SiliconLabsSoftware/task/add_CLA_agreement
MATTER-5424 : enable CLA
2 parents f861e9b + 455a66d commit 5584e5c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
name: 01-CLA-Assistant
2-
## This workflow is used for public repositories
1+
name: CLA validation
32

43
on:
5-
workflow_dispatch:
6-
#issue_comment:
7-
# types: [created]
8-
#pull_request_target:
9-
# types: [opened,closed,synchronize,reopened]
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened, synchronize, reopened]
108

119
permissions:
1210
actions: write
13-
contents: read # this can be 'read' if the signatures are in remote repository
11+
contents: read
1412
pull-requests: write
1513
statuses: write
1614

1715
jobs:
1816
CLAAssistant:
19-
runs-on: ubuntu-24.04
17+
runs-on: ubuntu-latest
2018
steps:
2119
- name: Create CLA Assistant Lite bot token
2220
uses: actions/create-github-app-token@v2
2321
id: app-token
2422
with:
25-
app-id: ${{ secrets.GH_APP_ID }}
26-
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
23+
app-id: ${{ secrets.SILABSIN_CLA_BOT_APP_ID }}
24+
private-key: ${{ secrets.SILABSIN_CLA_BOT_APP_PRIVATE_KEY }}
2725
owner: SiliconLabsInternal
2826
repositories: contributor-license-agreements
2927

28+
- name: Mask generated token
29+
run: echo "::add-mask::${{ steps.app-token.outputs.token }}"
30+
3031
- name: "CLA Assistant"
3132
if: ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request_target'
3233
uses: SiliconLabsSoftware/action-cla-assistant@silabs_flavour_v2
@@ -42,4 +43,4 @@ jobs:
4243
remote-organization-name: "SiliconLabsInternal"
4344
remote-repository-name: "contributor-license-agreements"
4445
create-file-commit-message: "Created the CLA database file. CLA Assistant Lite bot created this file."
45-
signed-commit-message: "$contributorName has signed the CLA in $owner/$repo#$pullRequestNo"
46+
signed-commit-message: "$contributorName has signed the CLA in $owner/$repo#$pullRequestNo"

0 commit comments

Comments
 (0)