Skip to content

Commit 08cc9a8

Browse files
DEVOPS-49 retrieve repo public key
1 parent 860c663 commit 08cc9a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

get_repository_public_key.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def get_repository_public_key_id(organization:str ,repository_name: str):
6969

7070
def main():
7171
""" To test the python code """
72-
# GH_TOKEN = os.environ.get("GH_TOKEN")
73-
gh_token = "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"
74-
os.environ['GH_TOKEN'] = gh_token
72+
GH_TOKEN = os.environ.get("GH_TOKEN")
7573
parser = argparse.ArgumentParser(description="Get the public key of the repository in GitHub")
7674
parser.add_argument("--organization", required=True, type=str, help= "GitHub organization name")
7775
parser.add_argument("--repository_name", help= "GitHub repository name", type=str, required=True)

0 commit comments

Comments
 (0)