@@ -3,13 +3,11 @@ name: 01-CLA-Assistant
33# # uncomment the other trigger conditions for public repositories
44
55on :
6- workflow_dispatch :
7- # issue_comment:
8- # types: [created]
9- # pull_request_target:
10- # types: [opened,closed,synchronize,reopened]
6+ issue_comment :
7+ types : [created]
8+ pull_request_target :
9+ types : [opened,closed,synchronize,reopened]
1110
12- # explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
1311permissions :
1412 actions : write
1513 contents : read # this can be 'read' if the signatures are in remote repository
@@ -20,22 +18,28 @@ jobs:
2018 CLAAssistant :
2119 runs-on : ubuntu-24.04
2220 steps :
21+ - name : Create CLA Assistant Lite bot token
22+ uses : actions/create-github-app-token@v2
23+ id : app-token
24+ with :
25+ app-id : ${{ secrets.GH_APP_ID }}
26+ private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
27+ owner : SiliconLabsInternal
28+ repositories : contributor-license-agreements
29+
2330 - name : " CLA Assistant"
2431 if : ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request_target'
25- uses : SiliconLabsWorkflows/ cla-assistant@silabs_flavour_v2
32+ uses : SiliconLabsSoftware/action- cla-assistant@silabs_flavour_v2
2633 env :
2734 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28- # the below token should have repo scope and must be manually added by you in the repository's secret
29- # This token is required only if you have configured to store the signatures in a remote repository/organization
30- PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
35+ PERSONAL_ACCESS_TOKEN : ${{ steps.app-token.outputs.token }}
3136 with :
3237 path-to-signatures : " cla_signatures_db.json"
33- path-to-document : " https://github.com/SiliconLabsSoftware/bluetooth-AoA-example/blob/main/cla.md"
34- # branch should not be protected
38+ path-to-document : " https://github.com/SiliconLabsSoftware/agreements-and-guidelines/blob/main/contributor_license_agreement.md"
3539 branch : ' cla-database'
3640 allowlist : silabs-*,bot*
3741 # the following are the optional inputs - If the optional inputs are not given, then default values will be taken
3842 remote-organization-name : " SiliconLabsInternal"
3943 remote-repository-name : " contributor-license-agreements"
4044 create-file-commit-message : " Created the CLA database file. CLA Assistant Lite bot created this file."
41- signed-commit-message : " $contributorName has signed the CLA in $owner/$repo#$pullRequestNo"
45+ signed-commit-message : " $contributorName has signed the CLA in $owner/$repo#$pullRequestNo"
0 commit comments