Skip to content

Commit f29c703

Browse files
DAT-16549



 Extensions :: Community PRs failing for liquibase-hibernate5 (#642)
* chore(test.yml): add authorization step before build-test job to determine environment based on pull request target repository feat(test.yml): add authorization step to determine environment based on pull request target repository before running build-test job * use pull_reuqest_target --------- Co-authored-by: Sayali Mohadikar <[email protected]>
1 parent fc57381 commit f29c703

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Test
22

33
on:
44
workflow_dispatch:
5-
pull_request:
5+
pull_request_target:
66
types:
77
- opened
88
- reopened
@@ -13,7 +13,15 @@ permissions:
1313
pull-requests: write
1414

1515
jobs:
16+
17+
authorize:
18+
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: true
22+
1623
build-test:
24+
needs: authorize
1725
uses: liquibase/build-logic/.github/workflows/[email protected]
1826
secrets: inherit
1927
with:

0 commit comments

Comments
 (0)