From e185cfe95a316a7100cc4254df8cc58e26b00926 Mon Sep 17 00:00:00 2001 From: Kathy Tran Date: Thu, 5 Dec 2024 09:22:58 -0500 Subject: [PATCH 1/3] Add id-token write for deploying db docs --- .github/workflows/deploy_artifacts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_artifacts.yml b/.github/workflows/deploy_artifacts.yml index 7ee1b5088f..9c3e8b0896 100644 --- a/.github/workflows/deploy_artifacts.yml +++ b/.github/workflows/deploy_artifacts.yml @@ -25,6 +25,7 @@ jobs: permissions: contents: read pages: write + id-token: write # Service containers to run with `container-job` services: From 737f5950528657a29a1aeaa3fe40345a434ed84c Mon Sep 17 00:00:00 2001 From: Kathy Tran Date: Thu, 5 Dec 2024 09:24:34 -0500 Subject: [PATCH 2/3] Test that it works --- .github/workflows/deploy_artifacts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_artifacts.yml b/.github/workflows/deploy_artifacts.yml index 9c3e8b0896..3392a216c8 100644 --- a/.github/workflows/deploy_artifacts.yml +++ b/.github/workflows/deploy_artifacts.yml @@ -19,7 +19,7 @@ jobs: secrets: inherit deploy_db_docs: - if: ${{ github.ref_type == 'branch' && github.ref_name == 'develop' }} + if: ${{ github.ref_type == 'branch' }} runs-on: ubuntu-22.04 permissions: From 3ed701d3b492e45217a6a570b8823d24aa1fb7af Mon Sep 17 00:00:00 2001 From: Kathy Tran Date: Thu, 5 Dec 2024 10:11:17 -0500 Subject: [PATCH 3/3] Revert "Test that it works" This reverts commit 737f5950528657a29a1aeaa3fe40345a434ed84c. --- .github/workflows/deploy_artifacts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_artifacts.yml b/.github/workflows/deploy_artifacts.yml index 3392a216c8..9c3e8b0896 100644 --- a/.github/workflows/deploy_artifacts.yml +++ b/.github/workflows/deploy_artifacts.yml @@ -19,7 +19,7 @@ jobs: secrets: inherit deploy_db_docs: - if: ${{ github.ref_type == 'branch' }} + if: ${{ github.ref_type == 'branch' && github.ref_name == 'develop' }} runs-on: ubuntu-22.04 permissions: