bugwarrior
bugwarrior copied to clipboard
[Github] Shared tokens, expiration
a couple of ideas, around github expiring tokens
- I now find i have several targets sharing the same
github.token
. Would it be possible to use named tokens such as the following, so that updating a token is easier:
[github_abc]
service = github
github.token = $token3
[github_def]
service = github
github.token = $token3
[general.tokens]
token3=ghp_123456
- according to this page there is a header
GitHub-Authentication-Token-Expiration
giving the expiration date. Could the tool give this feedback back on the command line? it should be collated so that only one message is given per token, even if the token is used multiple times.
- If we were going to support variables in INI files it might make sense to enable extended interpolation and add a
[Variables]
section to the configuration scheme for that purpose. However, it seems like for the use case you're presenting this feature could be renamed "Even Easier to Use Footgun" because I don't think we should be encouraging people to store secrets in bugwarriorrc in the first place when there are better options.
feat: Even Easier to Use Footgun
thanks, i will read the docs. I should be using the hooks, too (next to that link).
- still could be of interest, though