21
21
runs-on : ubuntu-latest
22
22
permissions :
23
23
issues : write
24
+ id-token : write
24
25
pull-requests : write
25
26
26
27
steps :
@@ -30,14 +31,22 @@ jobs:
30
31
echo "Reason: ${{ github.event.inputs.reason }}"
31
32
echo "Issue number: ${{ github.event.inputs.issue }}"
32
33
34
+ - name : Azure OpenID Connect
35
+ id : azure-oidc-auth
36
+ uses : dotnet/docs-tools/.github/actions/oidc-auth-flow@main
37
+ with :
38
+ client-id : ${{ secrets.CLIENT_ID }}
39
+ tenant-id : ${{ secrets.TENANT_ID }}
40
+ audience : ${{ secrets.OSMP_API_AUDIENCE }}
41
+
33
42
# This step occurs when ran manually, passing the manual issue number input
34
43
- name : manual-sequester
35
44
if : ${{ github.event_name == 'workflow_dispatch' }}
36
45
id : manual-sequester
37
46
uses : dotnet/docs-tools/actions/sequester@main
38
47
env :
39
48
ImportOptions__ApiKeys__GitHubToken : ${{ secrets.GITHUB_TOKEN }}
40
- ImportOptions__ApiKeys__OSPOKey : ${{ secrets.OSPO_KEY }}
49
+ ImportOptions__ApiKeys__AzureAccessToken : ${{ steps.azure-oidc-auth.outputs.access-token }}
41
50
ImportOptions__ApiKeys__QuestKey : ${{ secrets.QUEST_KEY }}
42
51
ImportOptions__ApiKeys__SequesterPrivateKey : ${{ secrets.SEQUESTER_PRIVATEKEY }}
43
52
ImportOptions__ApiKeys__SequesterAppID : ${{ secrets.SEQUESTER_APPID }}
@@ -53,12 +62,11 @@ jobs:
53
62
uses : dotnet/docs-tools/actions/sequester@main
54
63
env :
55
64
ImportOptions__ApiKeys__GitHubToken : ${{ secrets.GITHUB_TOKEN }}
56
- ImportOptions__ApiKeys__OSPOKey : ${{ secrets.OSPO_KEY }}
65
+ ImportOptions__ApiKeys__AzureAccessToken : ${{ steps.azure-oidc-auth.outputs.access-token }}
57
66
ImportOptions__ApiKeys__QuestKey : ${{ secrets.QUEST_KEY }}
58
67
ImportOptions__ApiKeys__SequesterPrivateKey : ${{ secrets.SEQUESTER_PRIVATEKEY }}
59
68
ImportOptions__ApiKeys__SequesterAppID : ${{ secrets.SEQUESTER_APPID }}
60
69
with :
61
70
org : ${{ github.repository_owner }}
62
71
repo : ${{ github.repository }}
63
72
issue : ${{ github.event.issue.number }}
64
-
0 commit comments