Skip to content

Commit 3384cf1

Browse files
Update README.md
1 parent 0b35d43 commit 3384cf1

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
# CodeSigningDemo
22
Skeleton for demonstrating use of the Sign CLI tool
33

4-
The `azure-pipelines.yml` shows how you can use a multi-stage build with code signing for Azure DevOps
4+
## Azure Setup
5+
6+
You'll need to create a ServicePrincipal in Azure and grant certificate `get` certificate and key `sign` permissions. For GitHub Actions, use of OIDC authentication is recommended, to remove use of authentication secrets.
7+
8+
- [GitHub Actions Azure OIDC configuration](https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Cwindows#use-the-azure-login-action-with-openid-connect)
9+
- [Create a ServicePrincipal using the Azure portal](https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#assign-the-application-to-a-role)
10+
11+
Note that you do not need to assign any subscription-level roles to this identity. Only access to Key Vault is required.
12+
13+
## Build Variables
14+
The following variables are used by the signing build:
15+
- `Tenant Id` Azure AD tenant
16+
- `Client Id` / `Application Id` ServicePrincipal identifier
17+
- `Key Vault Url` Url to Key Vault. Must be a Premium Sku for EV code signing certificates and all certificates issued after June 2023
18+
- `Certificate Id` Id of the certificate in Key Vault.
19+
- `Client Secret` for Azure DevOps Pipelines
20+
- `Subscription Id` for GitHub Actions
21+
22+
### Azure DevOpps Pipelines
23+
24+
The `azure-pipelines.yml` shows how you can use a multi-stage build with code signing for Azure DevOps
25+
26+
### GitHub Actions
27+
28+
The `.github/workflows/build-and-sign.yml` contains a multi-job build

0 commit comments

Comments
 (0)