feat: enabled loading http-api-token from file

This commit is contained in:
nils måsén 2023-08-12 18:38:50 +02:00
parent 139f67270b
commit d93c46a00f
2 changed files with 2 additions and 0 deletions

View file

@ -270,6 +270,7 @@ Environment Variable: WATCHTOWER_HTTP_API_UPDATE
## HTTP API Token
Sets an authentication token to HTTP API requests.
Can also reference a file, in which case the contents of the file are used.
```text
Argument: --http-api-token

View file

@ -466,6 +466,7 @@ func GetSecretsFromFiles(rootCmd *cobra.Command) {
"notification-msteams-hook",
"notification-gotify-token",
"notification-url",
"http-api-token",
}
for _, secret := range secrets {
if err := getSecretFromFile(flags, secret); err != nil {