diff --git a/.github/auth/db_auth.py b/.github/auth/db_auth.py deleted file mode 100644 index dae66671..00000000 --- a/.github/auth/db_auth.py +++ /dev/null @@ -1,22 +0,0 @@ -from pymongo import MongoClient -from bson import ObjectId - -import json -import sys - - -def _write_auth_to_file(endpoint, obj_id): - client = MongoClient(endpoint) - db = client.gcp_oauth - collection = db.creds - object_id_to_find = ObjectId(obj_id) - - creds = collection.find_one({"_id": object_id_to_find}) - - with open("/gcp_auth.json", "w") as f: - json.dump(creds, f, indent=4) - - -if __name__ == "__main__": - endpoint, obj_id = sys.argv[0], sys.argv[1] - _write_auth_to_file(endpoint, obj_id) diff --git a/.github/auth/gcp_auth.sh b/.github/auth/gcp_auth.sh deleted file mode 100644 index 05a7907c..00000000 --- a/.github/auth/gcp_auth.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -