Skip to content

Commit e9b2647

Browse files
committed
SOSC-165 updated workflow to use gh app now
Signed-off-by: Ziegler András <[email protected]>
1 parent fd52060 commit e9b2647

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/01-CLA-Assistant.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: 01-CLA-Assistant
2-
## This workflow is used to check the CLA validation for the pull requests.concurrency:
3-
## Source: https://github.com/SiliconLabsSoftware/action-cla-assistant/tree/silabs_flavour_v2
2+
## This workflow is used for public repositories
43

54
on:
65
issue_comment:
76
types: [created]
87
pull_request_target:
98
types: [opened,closed,synchronize,reopened]
109

11-
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
1210
permissions:
1311
actions: write
1412
contents: read # this can be 'read' if the signatures are in remote repository
@@ -17,20 +15,26 @@ permissions:
1715

1816
jobs:
1917
CLAAssistant:
20-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04
2119
steps:
20+
- name: Create CLA Assistant Lite bot token
21+
uses: actions/create-github-app-token@v2
22+
id: app-token
23+
with:
24+
app-id: ${{ secrets.GH_APP_ID }}
25+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
26+
owner: SiliconLabsInternal
27+
repositories: contributor-license-agreements
28+
2229
- name: "CLA Assistant"
2330
if: ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request_target'
2431
uses: SiliconLabsSoftware/action-cla-assistant@silabs_flavour_v2
2532
env:
2633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
# the below token should have repo scope and must be manually added by you in the repository's secret
28-
# This token is required only if you have configured to store the signatures in a remote repository/organization
29-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
34+
PERSONAL_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
3035
with:
3136
path-to-signatures: "cla_signatures_db.json"
3237
path-to-document: "https://github.com/SiliconLabsSoftware/agreements-and-guidelines/blob/main/contributor_license_agreement.md"
33-
# branch should not be protected
3438
branch: 'cla-database'
3539
allowlist: silabs-*,bot*
3640
# the following are the optional inputs - If the optional inputs are not given, then default values will be taken

0 commit comments

Comments
 (0)