Skip to content

Commit f1443b5

Browse files
committed
fix: stabilize CLA GitHub Action configuration
- Fix workflow syntax - Enable pull_request_target and issue_comment triggers - Remove workflow_dispatch - Improve conditional safety check - Format workflow file
1 parent b5a3a9c commit f1443b5

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: 01-CLA-Assistant
22
## This workflow is used for public repositories
33

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

1110
permissions:
1211
actions: write
@@ -28,7 +27,7 @@ jobs:
2827
repositories: contributor-license-agreements
2928

3029
- 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_target'
30+
if: ${{ github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA')) }}
3231
uses: SiliconLabsSoftware/action-cla-assistant@silabs_flavour_v2
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/04-TruffleHog-Security-Scan.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: 04-TruffleHog-Security-Scan
22
on:
3-
pull_request:
4-
branches:
5-
- main
6-
- master
7-
- develop
8-
- "release/**"
3+
pull_request:
4+
branches:
5+
- main
6+
- master
7+
- develop
8+
- "release/**"
99
jobs:
1010
trufflehog_scan:
1111
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)