diff --git a/.github/workflows/_terraformDestroyTemplate.yml b/.github/workflows/_terraformDestroyTemplate.yml index da2711d..64ea241 100644 --- a/.github/workflows/_terraformDestroyTemplate.yml +++ b/.github/workflows/_terraformDestroyTemplate.yml @@ -39,6 +39,12 @@ on: CLIENT_SECRET: required: true description: "Specifies the client secret." + BOT_OAUTH_CLIENT_ID: + required: true + description: "Specifies the client id of the app used for the bot oauth." + BOT_OAUTH_CLIENT_SECRET: + required: true + description: "Specifies the client secret of the app used for the bot oauth." permissions: id-token: write @@ -95,3 +101,5 @@ jobs: terraform apply -var-file="../../config/${CONFIG}/vars.tfvars" -auto-approve -input=false -destroy env: CONFIG: ${{ inputs.config }} + TF_VAR_bot_oauth_client_id: ${{ secrets.BOT_OAUTH_CLIENT_ID }} + TF_VAR_bot_oauth_client_secret: ${{ secrets.BOT_OAUTH_CLIENT_SECRET }} diff --git a/.github/workflows/_terraformEnvironmentTemplate.yml b/.github/workflows/_terraformEnvironmentTemplate.yml index 61319d0..4297ad4 100644 --- a/.github/workflows/_terraformEnvironmentTemplate.yml +++ b/.github/workflows/_terraformEnvironmentTemplate.yml @@ -38,6 +38,12 @@ on: CLIENT_SECRET: required: true description: "Specifies the client secret." + BOT_OAUTH_CLIENT_ID: + required: true + description: "Specifies the client id of the app used for the bot oauth." + BOT_OAUTH_CLIENT_SECRET: + required: true + description: "Specifies the client secret of the app used for the bot oauth." permissions: id-token: write @@ -150,6 +156,8 @@ jobs: terraform plan -var-file="../../config/${CONFIG}/vars.tfvars" -input=false env: CONFIG: ${{ inputs.config }} + TF_VAR_bot_oauth_client_id: ${{ secrets.BOT_OAUTH_CLIENT_ID }} + TF_VAR_bot_oauth_client_secret: ${{ secrets.BOT_OAUTH_CLIENT_SECRET }} # Add Pull Request Comment - name: Add Pull Request Comment @@ -235,3 +243,5 @@ jobs: terraform apply -var-file="../../config/${CONFIG}/vars.tfvars" -auto-approve -input=false env: CONFIG: ${{ inputs.config }} + TF_VAR_bot_oauth_client_id: ${{ secrets.BOT_OAUTH_CLIENT_ID }} + TF_VAR_bot_oauth_client_secret: ${{ secrets.BOT_OAUTH_CLIENT_SECRET }} diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index f42f2c8..5420680 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -33,6 +33,8 @@ jobs: secrets: CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + BOT_OAUTH_CLIENT_ID: ${{ secrets.BOT_OAUTH_CLIENT_ID }} + BOT_OAUTH_CLIENT_SECRET: ${{ secrets.BOT_OAUTH_CLIENT_SECRET }} terraform_dev_destroy: uses: ./.github/workflows/_terraformDestroyTemplate.yml @@ -49,3 +51,5 @@ jobs: secrets: CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + BOT_OAUTH_CLIENT_ID: ${{ secrets.BOT_OAUTH_CLIENT_ID }} + BOT_OAUTH_CLIENT_SECRET: ${{ secrets.BOT_OAUTH_CLIENT_SECRET }}