Skip to content

Commit 9a9af0d

Browse files
Remove Contributor role assignment for Service Principal
1 parent 050d2e6 commit 9a9af0d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,6 @@ jobs:
137137
capacity=${{ env.GPT_MIN_CAPACITY }} \
138138
imageVersion="${IMAGE_TAG}" \
139139
createdBy="Pipeline"
140-
- name: Assign Contributor role to Service Principal
141-
if: always()
142-
run: |
143-
echo "Assigning Contributor role to SPN for RG: ${{ env.RESOURCE_GROUP_NAME }}"
144-
az role assignment create \
145-
--assignee ${{ secrets.AZURE_CLIENT_ID }} \
146-
--role "Contributor" \
147-
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}
148140
149141
- name: Get Deployment Output and extract Values
150142
id: get_output

0 commit comments

Comments
 (0)