From 6d4eca6d5d16da6c35f68f969f4c2de662ddd908 Mon Sep 17 00:00:00 2001 From: Sprite Date: Sun, 8 Feb 2026 03:21:48 +0000 Subject: [PATCH] refactor: add SC2154 disable for API token variables - hetzner/lib/common.sh:31 - HCLOUD_TOKEN set by caller - digitalocean/lib/common.sh:36 - DO_API_TOKEN set by caller - Silences false positive warnings for intentionally external variables - These tokens are exported by ensure_*_token functions before use --- digitalocean/lib/common.sh | 1 + hetzner/lib/common.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/digitalocean/lib/common.sh b/digitalocean/lib/common.sh index f3e9ef7d..9eed7edc 100755 --- a/digitalocean/lib/common.sh +++ b/digitalocean/lib/common.sh @@ -33,6 +33,7 @@ do_api() { local method="$1" local endpoint="$2" local body="${3:-}" + # shellcheck disable=SC2154 generic_cloud_api "$DO_API_BASE" "$DO_API_TOKEN" "$method" "$endpoint" "$body" } diff --git a/hetzner/lib/common.sh b/hetzner/lib/common.sh index 52f6c60b..472d3425 100755 --- a/hetzner/lib/common.sh +++ b/hetzner/lib/common.sh @@ -28,6 +28,7 @@ hetzner_api() { local method="$1" local endpoint="$2" local body="${3:-}" + # shellcheck disable=SC2154 generic_cloud_api "$HETZNER_API_BASE" "$HCLOUD_TOKEN" "$method" "$endpoint" "$body" }