Comments (4)
I see, that sounds reasonable, so I went ahead and implemented it. Sorry for jumping the gun -- I noticed the code in SetAuthHeader
was a bit messy anyway and could be refactored so it was easier this way.
from eget.
It's already possible to read the GitHub token from the configuration file (~/.eget.toml
). Is this insufficient for your use-case? (not secret enough?)
from eget.
Ah yes, forgot to mention that indeed.
I am aware of that possibility and even was accounting to be able to use my proposal there as well:
[global]
github_token = "@/path/to/token"
The reason to be able to do this is that for me, eget
is not the only tool needing access to a GitHub token and therefore is much more convenient to mantain it in a single file sourced by applications. Also, reading tokens from files would make eget
extremely easy to use inside of Docker containers (another use-case I'm thinking on introducing eget
). For example, during a Docker image build, it is possible to specify secrets for the build which are exposed as files inside of the container.
If you are interested on bringing this feature, I'm also happy to work on it. Let me know.
from eget.
No problem! Nice you got motivated to do some cleanups! :)
from eget.
Related Issues (20)
- Bug: `EGET_BIN` seems to be ignored
- Still maintained? HOT 4
- toml file blues: even the example from the manpage does not work HOT 1
- Weird behaviour when using 'file' in config HOT 1
- Support Github Action
- Unexpected EOF downloading and extracting `.tar.gz` files
- eget downloads vscode extension rather than binary HOT 1
- cache downloads to avoid redownloading if unchanged
- Allows alias for target in configuration file
- Rename a file without specifying the dir to place it in
- GitLab support and non-public GitHub/GitLab instances HOT 3
- Bad configuration files are silently ignored HOT 2
- [Request] Provide Binaries for Android
- How to download several files for asset?
- Library Usage HOT 3
- Target folder expansion does not work HOT 1
- Download latest tag if latest not found HOT 2
- Eget.toml completely ignored HOT 3
- Fetch more than one archive from a repository?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eget.