Skip to content

Commit

Permalink
Merge pull request #175 from DFE-Digital/add_azure_github_action
Browse files Browse the repository at this point in the history
Added details on adding an Azure login for Github actions
  • Loading branch information
nickdevdfe committed May 9, 2023
2 parents 695160a + 6c6fe32 commit f3f583f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/infrastructure/automation/github-actions/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ review_in: 6 months

_Github actions_ is a powerful workflow system entirely defined in code. See the [original documentation](https://github.com/features/actions).

## Working with Azure

To run GitHub actions against Microsoft Azure, use the [Azure Login action](https://github.com/marketplace/actions/azure-login). The default policy is to create an environmental secret in the Repo, and supply it with a json credential in the format:

```
{
"clientId": "<GUID>",
"clientSecret": "<STRING>",
"subscriptionId": "<GUID>",
"tenantId": "<GUID>",
"resourceManagerEndpointUrl": "https://management.azure.com/"
}
```

These credentials are created through an [Azure service principal](https://technical-guidance.education.gov.uk/infrastructure/hosting/azure-cip/#azure-service-principal)

## Re-use existing work
Our [central respository of tested GitHub actions](https://github.com/DFE-Digital/github-actions) enable teams to set up their environments quickly and without needing to re-write existing actions. If you build something new, please consider adding it to the repo for everyone else to use.

Expand Down

0 comments on commit f3f583f

Please sign in to comment.