Title: Support reading GitHub token from an environment variable · Issue #8 · rsc/github · GitHub
Open Graph Title: Support reading GitHub token from an environment variable · Issue #8 · rsc/github
X Title: Support reading GitHub token from an environment variable · Issue #8 · rsc/github
Description: I am proposing an enhancement to allow overriding the default token path by reading the GitHub token from an environment variable, in addition to the existing command line flag. Would it be acceptable to add functionality to read the Git...
Open Graph Description: I am proposing an enhancement to allow overriding the default token path by reading the GitHub token from an environment variable, in addition to the existing command line flag. Would it be accepta...
X Description: I am proposing an enhancement to allow overriding the default token path by reading the GitHub token from an environment variable, in addition to the existing command line flag. Would it be accepta...
Opengraph URL: https://github.com/rsc/github/issues/8
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support reading GitHub token from an environment variable","articleBody":"I am proposing an enhancement to allow overriding the default token path by reading the GitHub token from an environment variable, in addition to the existing command line flag.\r\n\r\nWould it be acceptable to add functionality to read the GitHub token from an environment variable? This would provide an alternative way to supply the token, potentially improving flexibility and security, as users often prefer environment variables for sensitive information.\r\n\r\nOne might argue that the same result can be achieved by passing the environment variable to the command line flag. While this is true, directly supporting environment variables may reduce the risk of exposing sensitive information in the command history. It also aligns with common practices in other tools and environments, where environment variables are a standard method for managing configuration and secrets.\r\n\r\nI am of course willing to do the work to implement this feature if it is deemed useful.\r\n\r\nThank you for considering this request and for creating such a valuable tool. I appreciate all the work that has gone into it!","author":{"url":"https://github.com/hovsater","@type":"Person","name":"hovsater"},"datePublished":"2024-06-01T12:51:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8/github/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5dbeb0f4-5f5c-cac2-8982-78c8714ac9b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD02:3836BC:4953E4:5D4464:697DD376 |
| html-safe-nonce | 485f31f1865faf8b55ee611455321d2b7f195a06995afb5d0a6ce6f0c3df4f53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDAyOjM4MzZCQzo0OTUzRTQ6NUQ0NDY0OjY5N0REMzc2IiwidmlzaXRvcl9pZCI6IjY1MjAxNTk0OTY5OTg2MDU2ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aa41c0ed13e1896c3af184db18a4b1a4a41f051bd4a0ded8e777de9d7d240d1c |
| hovercard-subject-tag | issue:2329126939 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rsc/github/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7bc616ce08f4f1699cd0a38298ae1a1f641f4bc378859c8c8d2251ea9298a8b/rsc/github/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7bc616ce08f4f1699cd0a38298ae1a1f641f4bc378859c8c8d2251ea9298a8b/rsc/github/issues/8 |
| og:image:alt | I am proposing an enhancement to allow overriding the default token path by reading the GitHub token from an environment variable, in addition to the existing command line flag. Would it be accepta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hovsater |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/rsc/github git https://github.com/rsc/github.git |
| octolytics-dimension-user_id | 104030 |
| octolytics-dimension-user_login | rsc |
| octolytics-dimension-repository_id | 28950855 |
| octolytics-dimension-repository_nwo | rsc/github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28950855 |
| octolytics-dimension-repository_network_root_nwo | rsc/github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width