From 36b9f344d980774f0180110cabbec77e9593ccdd Mon Sep 17 00:00:00 2001 From: Niko Diamadis Date: Tue, 5 Nov 2024 09:58:46 -0500 Subject: [PATCH] Change authentication to header-based --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5b19a4d..986d23f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh -curl "$INPUT_GOTIFY_API_BASE/message?token=$INPUT_GOTIFY_APP_TOKEN" \ +curl "$INPUT_GOTIFY_API_BASE/message" \ + -H "X-Gotify-Key: $INPUT_GOTIFY_APP_TOKEN" \ -F "title=$INPUT_NOTIFICATION_TITLE" \ -F "message=$INPUT_NOTIFICATION_MESSAGE" \ -F "priority=$INPUT_NOTIFICATION_PRIORITY"