Skip to content

Commit

Permalink
feat(tools): simplify code signing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Oct 22, 2023
1 parent 1dceb5f commit 428b711
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions tools/code-signing-secrets.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import { ActionsOrganizationSecret } from '@pulumi/github'
import { Output } from '@pulumi/pulumi'

import identity from '../shared/identity'
import keyVault from './key-vault'

type Options = {
identity: Awaited<ReturnType<typeof identity>>,
keyVault: Awaited<ReturnType<typeof keyVault>>,
}

const codeSigningSecretsModule = async ( {
keyVault,
identity: { application, servicePrincipalPassword },
}: Options ) => ( [
[ 'url', 'URL', keyVault.properties.vaultUri ],
[ 'application-id', 'APPLICATION_ID', application.applicationId ],
[ 'client-secret', 'CLIENT_SECRET', servicePrincipalPassword.value ],
[ 'certificate-name', 'CERTIFICATE_NAME', 'EV-CodeSigning' ],
[ 'timestamp-url', 'TIMESTAMP_URL', 'http://timestamp.digicert.com' ],
] as const ).map( ( [
Expand Down
2 changes: 1 addition & 1 deletion tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const stack = async () => {

const keyVault = await keyVaultModule( { azure, identity } )

await codeSigningSecretsModule( { keyVault, identity } )
await codeSigningSecretsModule( { keyVault } )
await azureSecretsModule( { azure, identity } )
}

Expand Down

0 comments on commit 428b711

Please sign in to comment.