fix: use bw get notes for registry token (secure note, not login)
This commit is contained in:
@@ -61,7 +61,7 @@ git-crypt unlock /tmp/git-crypt-key
|
|||||||
rm /tmp/git-crypt-key
|
rm /tmp/git-crypt-key
|
||||||
|
|
||||||
echo "==> Fetching secrets from Bitwarden..."
|
echo "==> Fetching secrets from Bitwarden..."
|
||||||
REGISTRY_TOKEN=$("$BW_CLI" get password hantim-ci-registry-push --session "$BW_SESSION")
|
REGISTRY_TOKEN=$("$BW_CLI" get notes hantim-ci-registry-push --session "$BW_SESSION")
|
||||||
DEPLOY_PUBKEY=$("$BW_CLI" get item hantim-server-deploy --session "$BW_SESSION" | jq -r '.sshKey.publicKey')
|
DEPLOY_PUBKEY=$("$BW_CLI" get item hantim-server-deploy --session "$BW_SESSION" | jq -r '.sshKey.publicKey')
|
||||||
"$BW_CLI" lock
|
"$BW_CLI" lock
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user