Skip to content
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
10 changes: 10 additions & 0 deletions .github/workflows/cleanup-stale-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
# Mint an OIDC token to assume the shared elementary-oss AWS role
# (used by the athena matrix entry below).
id-token: write
env:
WAREHOUSE: ${{ matrix.warehouse-type }}
MAX_AGE_HOURS: ${{ inputs.max-age-hours || '24' }}
Expand All @@ -43,6 +46,13 @@ jobs:
exit 1
fi

- name: Configure AWS credentials
if: matrix.warehouse-type == 'athena'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: eu-west-1

- name: Checkout dbt package
uses: actions/checkout@v6
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-all-warehouses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ jobs:
needs: [check-fork-status, approve-fork]
permissions:
contents: read
# Required so the called test-warehouse.yml can mint an OIDC token to
# assume the AWS role (only used for the athena matrix entry); per
# GitHub, id-token: write must be granted by the calling workflow.
id-token: write
if: |
! cancelled() &&
needs.check-fork-status.result == 'success' &&
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-warehouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
timeout-minutes: 60
permissions:
contents: read
# Mint an OIDC token to assume the shared elementary-oss AWS role.
id-token: write
env:
WAREHOUSE: ${{ inputs.warehouse-type }}
DBT_VERSION: ${{ inputs.dbt-version }}
Expand All @@ -85,6 +87,13 @@ jobs:
path: dbt-data-reliability
ref: ${{ inputs.dbt-data-reliability-ref }}

- name: Configure AWS credentials
if: inputs.warehouse-type == 'athena'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: eu-west-1

- name: Start Postgres
if: inputs.warehouse-type == 'postgres'
working-directory: ${{ env.TESTS_DIR }}
Expand Down
3 changes: 1 addition & 2 deletions integration_tests/profiles/profiles.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@
region_name: {{ athena_region | toyaml }}
database: awsdatacatalog
schema: {{ schema }}
aws_access_key_id: {{ athena_aws_access_key_id | toyaml }}
aws_secret_access_key: {{ athena_aws_secret_access_key | toyaml }}
work_group: oss_tests
threads: 4
{%- endmacro %}

Expand Down
Loading