Skip to content

Commit 2383a91

Browse files
committed
Make changes for oidc config
1 parent 8193b92 commit 2383a91

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/_terraformEnvironmentTemplate.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ on:
3535
CLIENT_ID:
3636
required: true
3737
description: "Specifies the client id."
38-
CLIENT_SECRET:
39-
required: true
40-
description: "Specifies the client secret."
4138
MY_SAMPLE_SECRET:
4239
required: true
4340
description: "Specifies a sample secret."
@@ -101,15 +98,14 @@ jobs:
10198
environment: ${{ inputs.environment }}
10299
needs: [lint]
103100
concurrency:
104-
group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }}
101+
group: terraform-${{ inputs.config }}-${{ inputs.environment }}
105102
cancel-in-progress: false
106103

107104
env:
108105
ARM_TENANT_ID: ${{ inputs.tenant_id }}
109106
ARM_SUBSCRIPTION_ID: ${{ inputs.subscription_id }}
110107
ARM_CLIENT_ID: ${{ secrets.CLIENT_ID }}
111-
ARM_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
112-
ARM_USE_OIDC: false
108+
ARM_USE_OIDC: true
113109

114110
steps:
115111
# Setup Node
@@ -196,18 +192,17 @@ jobs:
196192
runs-on: [self-hosted]
197193
continue-on-error: false
198194
environment: ${{ inputs.environment }}
199-
if: github.event_name == 'push' || github.event_name == 'release'
195+
# if: github.event_name == 'push' || github.event_name == 'release'
200196
needs: [plan]
201197
concurrency:
202-
group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }}
198+
group: terraform-${{ inputs.config }}-${{ inputs.environment }}
203199
cancel-in-progress: false
204200

205201
env:
206202
ARM_TENANT_ID: ${{ inputs.tenant_id }}
207203
ARM_SUBSCRIPTION_ID: ${{ inputs.subscription_id }}
208204
ARM_CLIENT_ID: ${{ secrets.CLIENT_ID }}
209-
ARM_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
210-
ARM_USE_OIDC: false
205+
ARM_USE_OIDC: true
211206

212207
steps:
213208
# Setup Node

0 commit comments

Comments
 (0)