Skip to content

Commit 3b01029

Browse files
authored
chore(ci): add pull_request_target workflow for v2-release branch in pr build (#35216)
### Reason for this change GitHub Actions workflows with `on: pull_request` triggers do not execute when pull requests are created programmatically via API calls using personal access tokens. Release process creates PRs using the GitHub API, causing CI workflows to be skipped and preventing proper validation of release changes. ### Checklist - [X ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 342965c commit 3b01029

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/codebuild-pr-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ on:
88
- main
99
- v2-release
1010
pull_request: {}
11+
pull_request_target:
12+
branches:
13+
- v2-release
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
1118

1219
# For every PR, cancel any previous builds in progress
1320
# ... but for all other builds we keep them running

0 commit comments

Comments
 (0)