File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -323,12 +323,11 @@ export default class Phase {
323323 }
324324 }
325325 } catch ( err ) {
326- console . log ( `Error creating secrets: ${ err } ` ) ;
326+ throw ( `Error creating secrets: ${ err } ` ) ;
327327 }
328328 } catch ( err ) {
329- console . log ( "Something went wrong" ) ;
330- reject ;
331- return ;
329+ throw ( `Something went wrong: ${ err } ` ) ;
330+
332331 }
333332 } ) ;
334333 } ;
@@ -360,7 +359,6 @@ export default class Phase {
360359
361360 encryptedSecrets . forEach ( ( secret ) => {
362361 if ( ! secret . tags ) secret . tags = [ ] ;
363- if ( ! secret . path ) secret . path = "/" ;
364362 } ) ;
365363
366364 try {
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export type SecretInput = {
8383 value : string ;
8484 comment : string ;
8585 path ?: string ;
86+ tags ?: string [ ]
8687} ;
8788
8889export type CreateSecretOptions = {
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ export const encryptEnvSecrets = async (
4141 envKeys . publicKey
4242 ) ;
4343 }
44+ else {
45+ encryptedSecret . comment = await encryptAsymmetric (
46+ "" ,
47+ envKeys . publicKey
48+ ) ;
49+ }
4450
4551 if ( secret . override ?. value !== undefined ) {
4652 encryptedSecret . override ! . value = await encryptAsymmetric (
You can’t perform that action at this time.
0 commit comments