Skip to content

Commit cfcd64d

Browse files
committed
Revert "use pull_request_target"
This reverts commit c660e1e.
1 parent f39966c commit cfcd64d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

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

98
permissions:
109
actions: write
11-
contents: read
10+
contents: read
1211
pull-requests: write
1312
statuses: write
1413

@@ -20,16 +19,16 @@ jobs:
2019
uses: actions/create-github-app-token@v2
2120
id: app-token
2221
with:
23-
app-id: ${{ secrets.SILABSIN_CLA_BOT_APP_ID }}
24-
private-key: ${{ secrets.SILABSIN_CLA_BOT_APP_PRIVATE_KEY }}
22+
app-id: ${{ secrets.GH_APP_ID }}
23+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
2524
owner: SiliconLabsInternal
2625
repositories: contributor-license-agreements
2726

2827
- name: Mask generated token
2928
run: echo "::add-mask::${{ steps.app-token.outputs.token }}"
3029

3130
- name: "CLA Assistant"
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'
31+
if: ${{ contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA') }} || github.event_name == 'pull_request'
3332
uses: SiliconLabsSoftware/action-cla-assistant@silabs_flavour_v2
3433
env:
3534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -43,4 +42,4 @@ jobs:
4342
remote-organization-name: "SiliconLabsInternal"
4443
remote-repository-name: "contributor-license-agreements"
4544
create-file-commit-message: "Created the CLA database file. CLA Assistant Lite bot created this file."
46-
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

Comments
 (0)