diff --git a/.github/workflows/test-all-warehouses.yml b/.github/workflows/test-all-warehouses.yml index c2a4a086a..e6945ac3a 100644 --- a/.github/workflows/test-all-warehouses.yml +++ b/.github/workflows/test-all-warehouses.yml @@ -1,6 +1,6 @@ name: Test all warehouse platforms on: - pull_request: + pull_request_target: branches: ["master"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -66,7 +66,7 @@ jobs: warehouse-type: ${{ matrix.warehouse-type }} dbt-version: ${{ matrix.dbt-version }} elementary-ref: ${{ inputs.elementary-ref }} - dbt-data-reliability-ref: ${{ inputs.dbt-data-reliability-ref }} + dbt-data-reliability-ref: ${{ inputs.dbt-data-reliability-ref || (github.event_name == 'pull_request_target' && github.event.pull_request.head.sha) || '' }} secrets: inherit notify_failures: diff --git a/.github/workflows/test-warehouse.yml b/.github/workflows/test-warehouse.yml index bde2b50f2..8e308af91 100644 --- a/.github/workflows/test-warehouse.yml +++ b/.github/workflows/test-warehouse.yml @@ -53,6 +53,7 @@ env: jobs: test: runs-on: ubuntu-latest + environment: elementary_test_env # This is a github environment (not to be confused with env vars) concurrency: # This is what eventually defines the schema name in the data platform. group: tests_${{ inputs.warehouse-type }}_dbt_${{ inputs.dbt-version }}_${{ github.head_ref || github.ref_name }}