1010 push :
1111 branches :
1212 - main
13- pull_request :
13+ pull_request_target :
1414 branches :
1515 - main
1616 types :
3333
3434jobs :
3535 build :
36- # This Job should run either on non-`pull_request ` events,
37- # or `pull_request ` event with a `labeled` action with a label named `github_actions:pull-request`
36+ # This Job should run either on non-`pull_request_target ` events,
37+ # or `pull_request_target ` event with a `labeled` action with a label named `github_actions:pull-request`
3838 # since we want to run Website Builds on all these occasions. As this allows us to be certain the that builds are passing
39- if : github.event_name != 'pull_request ' || github.event.label.name == 'github_actions:pull-request'
39+ if : github.event_name != 'pull_request_target ' || github.event.label.name == 'github_actions:pull-request'
4040
4141 name : Build on ${{ matrix.os }}
4242 runs-on : ${{ matrix.os }}
6262 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6363 with :
6464 # Provides the Pull Request commit SHA or the GitHub merge group ref
65- ref : ${{ github.event_name == 'pull_request ' && github.event.pull_request.head.sha || github.ref }}
65+ ref : ${{ github.event_name == 'pull_request_target ' && github.event.pull_request.head.sha || github.ref }}
6666 # We only need to fetch the last commit from the head_ref
6767 # since we're not using the `--filter` operation from turborepo
6868 # We don't use the `--filter` as we always want to force builds regardless of having changes or not
@@ -122,7 +122,7 @@ jobs:
122122 # in order to reduce source wastages and build times.
123123 # Note that we skip full static builds on Crowdin-based Pull Requests as these PRs should only contain translation changes
124124 if : |
125- (github.event_name == 'pull_request ' &&
125+ (github.event_name == 'pull_request_target ' &&
126126 github.event.pull_request.head.ref != 'chore/crowdin')
127127 run : node_modules/.bin/turbo deploy ${{ env.TURBO_ARGS }}
128128 env :
@@ -132,12 +132,12 @@ jobs:
132132 NODE_OPTIONS : ' --max_old_space_size=4096'
133133 # Used for API requests that require GitHub API scopes
134134 NEXT_GITHUB_API_KEY : ${{ secrets.GITHUB_TOKEN }}
135- # We want to ensure that static exports for all locales do not occur on `pull_request ` events
135+ # We want to ensure that static exports for all locales do not occur on `pull_request_target ` events
136136 NEXT_PUBLIC_STATIC_EXPORT_LOCALE : false
137137
138138 - name : Sync Orama Cloud
139139 # We only want to sync the Orama Cloud production indexes on `push` events.
140- # We also want to sync the Orama Cloud preview (deployment) indexes on `pull_request ` events (or manual triggers).
140+ # We also want to sync the Orama Cloud preview (deployment) indexes on `pull_request_target ` events (or manual triggers).
141141 # We also want to ensure that the sync only happens on the `ubuntu-latest` runner to avoid duplicate syncs
142142 # or Windows-based path issues.
143143 env :
0 commit comments