Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit a533e2c

Browse files
committed
different encryptet key for some skope
1 parent 2738864 commit a533e2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rotate_keys.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ def main_function():
4848
(repo_public_key, repo_pub_key_id) = get_repo_pub_key(owner_repository, github_token)
4949

5050
#encrypt the secrets
51-
encrypted_access_key = encrypt(public_key,new_access_key)
52-
encrypted_secret_key = encrypt(public_key,new_secret_key)
51+
repo_encrypted_access_key = encrypt(repo_public_key,new_access_key)
52+
repo_encrypted_secret_key = encrypt(repo_public_key,new_secret_key)
53+
dependabot_encrypted_access_key = encrypt(dependabot_public_key,new_access_key)
54+
dependabot_encrypted_secret_key = encrypt(dependabot_public_key,new_secret_key)
5355

5456
#upload secrets
5557
upload_repo_secret(owner_repository,access_key_name,encrypted_access_key,repo_pub_key_id,github_token)

0 commit comments

Comments
 (0)