Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 (test.yml): update workflow to trigger on pull_request_target event… #333

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/test-harness.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Liquibase Test Harness for BigQuery
on:
pull_request:
pull_request_target:
branches:
- '*'
push:
Expand All @@ -14,8 +14,20 @@ on:
env:
tf_version: 'latest'

permissions:
contents: write
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

setup:
needs: authorize
runs-on: ubuntu-latest
permissions:
contents: 'read'
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@ name: Build and Test

on:
workflow_dispatch:
pull_request:
pull_request_target:
types:
- opened
- reopened
- synchronize

permissions:
contents: write
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/[email protected]
secrets: inherit
with:
Expand Down
Loading