mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-22 03:14:57 +00:00
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
This commit is contained in:
parent
f6155b102b
commit
6d4eca6d5d
2 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue