Skip to content

Commit

Permalink
gcp auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Oct 4, 2023
1 parent 3828e22 commit f8198b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/auth/db_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def _write_auth_to_file(endpoint, obj_id):
object_id_to_find = ObjectId(str(obj_id))

creds = collection.find_one({"_id": object_id_to_find})
del creds['_id']

with open(".github/auth/gcp_auth.json", "w") as f:
json.dump(creds, f, indent=4)
Expand Down

0 comments on commit f8198b6

Please sign in to comment.