AS-Make-GitHub-Repository-Private
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Content Index
This playbook is intended to be run from a Microsoft Sentinel Incident. It will look up the GitHub repositories associated with the Incident Account Entities and make them private. A comment noting the affected GitHub repositories will be added to the Incident.
| Attribute |
Value |
| Type |
Playbook |
| Solution |
Standalone Content |
| Source |
View on GitHub |
Logic App Connectors
This playbook uses 4 Logic App connectors / built-in actions:
Action parameters (URLs, paths, function IDs)
| Action |
Method |
Endpoint |
Other |
| Add_comment_to_incident_(V3) |
post |
/Incidents/Comment |
— |
| Entities_-_Get_Accounts |
post |
/entities/account |
— |
| Action |
Method |
Endpoint |
Other |
| Get_secret |
get |
[concat('/secrets/@{encodeURIComponent(''', parameters('SecretName'), ''')}/value')] |
— |
| Action |
Method |
Endpoint |
Other |
| CreateJWT |
— |
— |
functionId=[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name ,'/providers/Microsoft.Web/sites/', parameters('FunctionAppName'), '/functions/CreateJWT')] |
http (Built-in)
| Action |
Method |
Endpoint |
Other |
| HTTP_-_Make_Repository_Private |
PATCH |
https://api.github.com/repos/@{items('For_each_-_Repository')['owner']['login']}/@{substring(items('For_each_-_Account_entity')['name'], add(indexOf(items('For_each_-_Account_entity')['name'],'/'), 1), sub(length(items('For_each_-_Account_entity')['name']), add(indexOf(items('For_each_-_Account_entity')['name'],'/'),1)))} |
— |
| HTTP_-_Authenticate_as_a_GitHub_App_installation |
POST |
[concat('https://api.github.com/app/installations/', parameters('GitHubAppInstallationID'), '/access_tokens')] |
— |
| HTTP_-_Get_Organization_Repositories |
GET |
[concat('https://api.github.com/orgs/', parameters('GitHubOrganizationName'), '/repos?per_page=100')] |
— |
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
↑ Back to Playbooks