Automated GitHub Actions setup script — from 17 manual steps to one command #1503
Replies: 3 comments 1 reply
-
|
Thanks for sharing, Loïc! Can't wait to try this out. 👍 |
Beta Was this translation helpful? Give feedback.
-
|
I've been all over the place lately and almost forgot about this. It would be great if you would like to submit a PR for this script!! One question: could/should this improvement fit into @merill's existing powershell\public\core\New-MtMaesterApp.ps1 and powershell\public\core\Add-MtMaesterAppFederatedCredential.ps1 functions? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @SamErde I was not aware of these existing scripts, so real difference is that it auto detect your github repo and push the secrets using gh cli. I created the PR if you still think this adds some values; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
While working on integrating TCM drifts into Maester tests I had to configure it in a new repo, and I thought the current process to integrate Maester with GitHub Action has a lot of manual steps, might discourage some users.
Create the app registration, grant 17+ Graph permissions one by one, configure the federated identity credential, set GitHub secrets is somehow scary.
So I created a script that does all in one command.
=>Zero required parameters — it auto-detects the GitHub repo from your local git remote. But everything is overridable:
ex
Prerequisites: Microsoft.Graph.Authentication module + gh CLI authenticated.
The script follows the exact same steps as the official Maester setup guide, just automated.
Wondering if this is something that could be interesting to integrate in the repo? Happy to submit a PR in this case.
The script is available here: https://github.com/kayasax/EasyTCM/blob/master/scripts/New-MaesterServicePrincipal.ps1
Beta Was this translation helpful? Give feedback.
All reactions