Skip to content

Commit dfe7fb9

Browse files
committed
ci: twister: convert to pull_request
Signed-off-by: Anas Nashif <[email protected]>
1 parent 0d66091 commit dfe7fb9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/twister-prep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
prep_pr:
18-
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request_target'
18+
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request'
1919
runs-on:
2020
group: zephyr-runner-v2-linux-x64-4xlarge
2121
container:

.github/workflows/twister-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
upload-to-elasticsearch:
1414
if: |
1515
github.repository == 'zephyrproject-rtos/zephyr' &&
16-
github.event.workflow_run.event != 'pull_request_target'
16+
github.event.workflow_run.event != 'pull_request'
1717
env:
1818
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
1919
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"

.github/workflows/twister.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
- v*-branch
88
- collab-*
9-
pull_request_target:
9+
pull_request:
1010
branches:
1111
- main
1212
- v*-branch
@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Environment Setup
8282
run: |
83-
if [ "${{github.event_name}}" = "pull_request_target" ]; then
83+
if [ "${{github.event_name}}" = "pull_request" ]; then
8484
git config --global user.email "[email protected]"
8585
git config --global user.name "Zephyr Builder"
8686
rm -fr ".git/rebase-apply"
@@ -141,7 +141,7 @@ jobs:
141141
fi
142142
fi
143143
144-
- if: github.event_name == 'pull_request_target'
144+
- if: github.event_name == 'pull_request'
145145
name: Run Tests with Twister (Pull Request)
146146
id: run_twister_pr
147147
run: |

0 commit comments

Comments
 (0)