32
32
validate :
33
33
name : Set Version and SHA
34
34
runs-on : ubuntu-24.04
35
+ permissions :
36
+ contents : read
35
37
outputs :
36
38
version : ${{ steps.version.outputs.version }}
37
39
sha : ${{ steps.set-sha.outputs.sha }}
@@ -103,6 +105,9 @@ jobs:
103
105
name : Push changed files to SDK Swift repo
104
106
runs-on : ubuntu-24.04
105
107
needs : validate
108
+ permissions :
109
+ contents : read
110
+ id-token : write
106
111
env :
107
112
108
113
_BOT_NAME : bitwarden-devops-bot
@@ -126,10 +131,12 @@ jobs:
126
131
echo "ref=main" >> $GITHUB_OUTPUT
127
132
fi
128
133
129
- - name : Login to Azure - Prod Subscription
130
- uses : Azure/ login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
134
+ - name : Log in to Azure
135
+ uses : bitwarden/gh-actions/azure- login@main
131
136
with :
132
- creds : ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
137
+ subscription_id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
138
+ tenant_id : ${{ secrets.AZURE_TENANT_ID }}
139
+ client_id : ${{ secrets.AZURE_CLIENT_ID }}
133
140
134
141
- name : Retrieve secrets
135
142
id : retrieve-secrets
@@ -140,6 +147,9 @@ jobs:
140
147
github-gpg-private-key-passphrase,
141
148
github-pat-bitwarden-devops-bot-repo-scope"
142
149
150
+ - name : Log out from Azure
151
+ uses : bitwarden/gh-actions/azure-logout@main
152
+
143
153
- name : Checkout SDK-Swift repo
144
154
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
145
155
with :
@@ -221,15 +231,21 @@ jobs:
221
231
needs :
222
232
- validate
223
233
- repo-sync
234
+ permissions :
235
+ actions : read
236
+ contents : write
237
+ id-token : write
224
238
env :
225
239
_PKG_VERSION : ${{ needs.validate.outputs.version }}
226
240
_RELEASE_NAME : ${{ needs.validate.outputs.release_name }}
227
241
_BUILD_RUN_ID : ${{ needs.validate.outputs.run_id }}
228
242
steps :
229
- - name : Login to Azure - Prod Subscription
230
- uses : Azure/ login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
243
+ - name : Log in to Azure
244
+ uses : bitwarden/gh-actions/azure- login@main
231
245
with :
232
- creds : ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
246
+ subscription_id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
247
+ tenant_id : ${{ secrets.AZURE_TENANT_ID }}
248
+ client_id : ${{ secrets.AZURE_CLIENT_ID }}
233
249
234
250
- name : Retrieve secrets
235
251
id : retrieve-secrets
@@ -238,6 +254,9 @@ jobs:
238
254
keyvault : ${{ env._KEY_VAULT }}
239
255
secrets : " github-pat-bitwarden-devops-bot-repo-scope"
240
256
257
+ - name : Log out from Azure
258
+ uses : bitwarden/gh-actions/azure-logout@main
259
+
241
260
- name : Download BitwardenEFI artifact
242
261
uses : bitwarden/gh-actions/download-artifacts@main
243
262
id : download-artifact
0 commit comments