Skip to content

feat: add support for env_token_override#619

Open
netomi wants to merge 1 commit intomainfrom
token_override
Open

feat: add support for env_token_override#619
netomi wants to merge 1 commit intomainfrom
token_override

Conversation

@netomi
Copy link
Member

@netomi netomi commented Mar 18, 2026

This fixes #392 .

You can specify now a new configuration value, e.g. in .otterdog-defaults.json:

{
  "env_token_override": "GH_TOKEN",
}

so when running an operation that only needs a token, the one from the env variable as specified in the override will be used instead.

@netomi netomi requested a review from lukpueh March 18, 2026 07:49
@AlexanderLanin
Copy link
Contributor

AlexanderLanin commented Mar 20, 2026

Isn't this a very very specific way to a more generic "fallback provider" solution? Like specify pass and env provider, and if pass is not available fallback to env. Or a provider_selection_override param/env-var?

@netomi
Copy link
Member Author

netomi commented Mar 20, 2026

ok let me rethink that, maybe we can utilize the env provider for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the ability to use custom PAT for list-advisories command

2 participants