Skip to content

Commit 256be05

Browse files
DEVOPS-49 fixed variable issue in encrypt secret py code
1 parent 6773081 commit 256be05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

create_or_update_repo_secret.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def create_or_update_organization_secret_github(organization: str, secret_name:
4040
}
4141
response = requests.put(github_org_secret_endpoint, headers=headers, json=data)
4242
if response.status_code == '201':
43-
print(f"Secret {secret_name} created {organization} at {ist_now_formatted}")
43+
print(f"Secret {secret_name} created {organization} at {ist_now_formatted} ")
4444
else:
45-
print(f"Secret {secret_name} updated on {organization} at {ist_now_formatted}")
45+
print(f"Secret {secret_name} updated on {organization} at {ist_now_formatted} ")
4646

4747

4848
def main():

encrypt_using_libnacl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def encrypt(public_key: str, secret_value: str) -> str:
1717
return b64encode(encrypted).decode("utf-8")
1818

1919
def main():
20-
repo_public_key = os.environ.get("PUBLIC_KEY")
20+
repo_public_key = os.environ.get("REPOSITORY_PUBLIC_KEY")
2121
secret_value = os.environ.get("SECRET_VALUE")
2222
# public_key = "<public key here for local testing>"
2323
# secret_value = "Krishnadhas"

0 commit comments

Comments
 (0)