Commit cd15ac2
ci: use GitHub App identity instead of PAT for Agents-M365Copilot (#1442)
* ci: use GitHub App identity instead of PAT for Agents-M365Copilot
Pivots the Agents-M365Copilot generation flow off the PAT-backed
`microsoftkiota` service connection and onto the existing
`microsoft-graph-devx-bot` GitHub App identity.
- Add opt-in `useGitHubAppAuth` param to language-generation-kiota.yml.
When true, the public repo is cloned anonymously and the push remote is
switched to a GitHub App installation token before pushing. SDK repos
(param defaults false) are unaffected.
- Add scripts/set-app-token-push-url.ps1 to set the origin push URL to the
App token without logging it (fetch stays anonymous).
- Remove the Agents-M365Copilot repo resource (microsoftkiota endpoint) and
its SDL-exclude entry; set useGitHubAppAuth: true on the 6 Agents jobs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 74cd916 commit cd15ac2
3 files changed
Lines changed: 98 additions & 15 deletions
File tree
- .azure-pipelines
- generation-templates
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
| |||
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
193 | | - | |
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
| |||
963 | 958 | | |
964 | 959 | | |
965 | 960 | | |
| 961 | + | |
966 | 962 | | |
967 | 963 | | |
968 | 964 | | |
| |||
1009 | 1005 | | |
1010 | 1006 | | |
1011 | 1007 | | |
| 1008 | + | |
1012 | 1009 | | |
1013 | 1010 | | |
1014 | 1011 | | |
| |||
1057 | 1054 | | |
1058 | 1055 | | |
1059 | 1056 | | |
| 1057 | + | |
1060 | 1058 | | |
1061 | 1059 | | |
1062 | 1060 | | |
| |||
1103 | 1101 | | |
1104 | 1102 | | |
1105 | 1103 | | |
| 1104 | + | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | 1107 | | |
| |||
1145 | 1144 | | |
1146 | 1145 | | |
1147 | 1146 | | |
| 1147 | + | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
| 1194 | + | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | 1197 | | |
| |||
Lines changed: 52 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
| |||
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
103 | 123 | | |
104 | 124 | | |
105 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
106 | 145 | | |
107 | 146 | | |
108 | 147 | | |
| |||
112 | 151 | | |
113 | 152 | | |
114 | 153 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
121 | 163 | | |
122 | 164 | | |
123 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments