Skip to content

Commit d00d734

Browse files
authored
Migrate permissions reference gen to FIC workflow (#28565)
1 parent f82c835 commit d00d734

6 files changed

Lines changed: 25 additions & 354 deletions

File tree

.gdn/.gdnbaselines

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@
3939
"tool": "psscriptanalyzer",
4040
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
4141
"createdDate": "2026-02-24 12:06:54Z"
42-
},
43-
"3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915": {
44-
"signature": "3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915",
45-
"alternativeSignatures": [],
46-
"target": "scripts/update-permissions-reference-fic.ps1",
47-
"line": 179,
48-
"memberOf": [
49-
"default"
50-
],
51-
"tool": "psscriptanalyzer",
52-
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
53-
"createdDate": "2026-03-24 12:06:54Z"
5442
}
5543
}
5644
}

.gdn/.gdnsuppress

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@
3939
"tool": "psscriptanalyzer",
4040
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
4141
"createdDate": "2026-02-24 12:06:54Z"
42-
},
43-
"3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915": {
44-
"signature": "3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915",
45-
"alternativeSignatures": [],
46-
"target": "scripts/update-permissions-reference-fic.ps1",
47-
"line": 179,
48-
"memberOf": [
49-
"default"
50-
],
51-
"tool": "psscriptanalyzer",
52-
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
53-
"createdDate": "2026-03-24 12:06:54Z"
5442
}
5543
}
5644
}

.github/workflows/permissions-reference-gen-fic.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

.github/workflows/permissions-reference-gen.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
id-token: write # Required for federated identity credentials
1112

1213
jobs:
1314
update-permissions-reference:
@@ -23,13 +24,19 @@ jobs:
2324
with:
2425
path: docs
2526

27+
- name: Azure Login using Federated Identity
28+
uses: azure/login@v2
29+
with:
30+
client-id: ${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_ID }}
31+
tenant-id: ${{ secrets.GRAPHPERMISSIONSREFERENCE_TENANT_ID }}
32+
allow-no-subscriptions: true
33+
2634
- name: Run PowerShell script to update permissions
2735
shell: pwsh
2836
run: |
2937
$ClientId = "${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_ID }}"
3038
$TenantId = "${{ secrets.GRAPHPERMISSIONSREFERENCE_TENANT_ID }}"
31-
$ClientSecret = "${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_SECRET }}"
32-
./docs/scripts/update-permissions-reference.ps1 -ClientId $ClientId -TenantId $TenantId -ClientSecret $ClientSecret
39+
./docs/scripts/update-permissions-reference.ps1 -ClientId $ClientId -TenantId $TenantId
3340
3441
- name: Get token
3542
id: get_token

scripts/update-permissions-reference-fic.ps1

Lines changed: 0 additions & 226 deletions
This file was deleted.

0 commit comments

Comments
 (0)