Skip to content

Commit

Permalink
fix: guarantee GitHub organisation secrets are replaced correctly
Browse files Browse the repository at this point in the history
Previously, replacements were deleting the secret after the replacement had completed, meaning the secret itself is no longer present

See pulumi/pulumi-github#250
  • Loading branch information
Harjot1Singh committed Oct 22, 2023
1 parent 4e61cdd commit 5192a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment/github-secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const githubSecretsModule = async ( { cluster: { kubeconfig } }: Options ) => {
secretName: `${environment.name.toUpperCase()}__KUBECONFIG`,
visibility: 'all',
plaintextValue: kubeconfig,
} )
}, { deleteBeforeReplace: true } )
}

export default githubSecretsModule
2 changes: 1 addition & 1 deletion tools/azure-secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ const azureSecretsModule = async ( {
secretName: `${environment.name.toUpperCase()}__AZURE_${secretName}`,
visibility: 'all',
plaintextValue: value as Output<string>,
} ) )
}, { deleteBeforeReplace: true } ) )

export default azureSecretsModule

0 comments on commit 5192a7d

Please sign in to comment.