Skip to content

Commit

Permalink
Adding sep config back
Browse files Browse the repository at this point in the history
  • Loading branch information
abuabraham-ttd committed Jan 19, 2025
1 parent c6cd256 commit 42af513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gcp-oidc/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _get_secret(self, secret_identifier=None) -> ConfidentialComputeConfig:
raise MissingConfig(self.__class__.__name__, ["API_TOKEN_SECRET_NAME"])
try:
client = secretmanager.SecretManagerServiceClient()
secret_version_name = f"{os.getenv("API_TOKEN_SECRET_NAME")}/versions/latest"
secret_version_name = f"{os.getenv("API_TOKEN_SECRET_NAME")}"
response = client.access_secret_version(name=secret_version_name)
secret_value = response.payload.data.decode("UTF-8")
except PermissionDenied or DefaultCredentialsError :
Expand Down

0 comments on commit 42af513

Please sign in to comment.