Skip to content

Commit 455a66d

Browse files
committed
use pull_request_target
1 parent 892ba9d commit 455a66d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: CLA validation
33
on:
44
issue_comment:
55
types: [created]
6-
pull_request:
6+
pull_request_target:
7+
types: [opened, synchronize, reopened]
78

89
permissions:
910
actions: write
10-
contents: read
11+
contents: read
1112
pull-requests: write
1213
statuses: write
1314

@@ -19,16 +20,16 @@ jobs:
1920
uses: actions/create-github-app-token@v2
2021
id: app-token
2122
with:
22-
app-id: ${{ secrets.GH_APP_ID }}
23-
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 }}
2425
owner: SiliconLabsInternal
2526
repositories: contributor-license-agreements
2627

2728
- name: Mask generated token
2829
run: echo "::add-mask::${{ steps.app-token.outputs.token }}"
2930

3031
- name: "CLA Assistant"
31-
if: ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request'
32+
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
3334
env:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -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)