From a083508ab6b7a6ac221a70c1ec0d5c7c80f39067 Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Tue, 8 Jun 2021 11:40:41 -0700 Subject: [PATCH] Add AWS authentication to github actions Signed-off-by: Tsotne Tabidze --- .github/auto_assign-issues.yml | 2 +- .github/workflows/integration_tests.yml | 10 +++++++++- .github/workflows/pr_integration_tests.yml | 12 ++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/auto_assign-issues.yml b/.github/auto_assign-issues.yml index cee9b52b3e..cf2c722131 100644 --- a/.github/auto_assign-issues.yml +++ b/.github/auto_assign-issues.yml @@ -7,4 +7,4 @@ addAssignees: true assignees: - jklegar - woop - - oavdeev + - tsotnet diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 739ccc3e4b..cb5bf7db6c 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -24,13 +24,21 @@ jobs: python-version: ${{ matrix.python-version }} architecture: x64 - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@master + uses: google-github-actions/setup-gcloud@v0 with: project_id: ${{ secrets.GCP_PROJECT_ID }} service_account_key: ${{ secrets.GCP_SA_KEY }} export_default_credentials: true - name: Use gcloud CLI run: gcloud info + - name: Set up AWS SDK + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 + - name: Use AWS CLI + run: aws sts get-caller-identity - name: Install dependencies run: make install-python-ci-dependencies - name: Test python diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index 938a3a8dea..ddd89cdb73 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -44,14 +44,22 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@master + - name: Set up gcloud SDK + uses: google-github-actions/setup-gcloud@v0 with: project_id: ${{ secrets.GCP_PROJECT_ID }} service_account_key: ${{ secrets.GCP_SA_KEY }} export_default_credentials: true - name: Use gcloud CLI run: gcloud info + - name: Set up AWS SDK + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 + - name: Use AWS CLI + run: aws sts get-caller-identity - name: Install dependencies run: make install-python-ci-dependencies - name: Test python