Skip to content

Commit

Permalink
Fix the secret identifier format to honor the case configured (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
puthrayaharness authored Jul 17, 2024
1 parent acacd53 commit f528be6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,13 @@ func formatString(key string) string {
}

func getSecretKeyWithScope(key string) string {
camelCase := ToCamelCase(key)
switch migrationReq.SecretScope {
case Account:
return Account + "." + camelCase
return Account + "." + key
case Org:
return Org + "." + camelCase
return Org + "." + key
default:
return camelCase
return key
}
}

Expand Down

0 comments on commit f528be6

Please sign in to comment.