Skip to content

Commit

Permalink
chore(test.yml): add authorization step before build-test job to dete…
Browse files Browse the repository at this point in the history
…rmine 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
  • Loading branch information
jandroav committed Dec 27, 2023
1 parent 20b7ec4 commit 419335d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ permissions:
pull-requests: write

jobs:

authorize:
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

build-test:
needs: authorize
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.9
secrets: inherit
with:
Expand Down

0 comments on commit 419335d

Please sign in to comment.