extractions / netrc Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to append an entry to ~/.netrc
License: Apache License 2.0
GitHub Action to append an entry to ~/.netrc
License: Apache License 2.0
We ran in to an issue when running this action on the same physical machine, each time the action is invoked, the netrc info is appended to the existing netrc file, rather than replacing it. We only figured out this error when our password changed, but wasn't being picked up on the CI. Turns out our netrc file was 121K
of duplicated info.
The issue is caused by the file being opened in append mode.
I need to add 2 different servers so my setup looks like this:
- uses: extractions/netrc@v2
with:
machine: github.com
username: <username>
password: <password>
- uses: extractions/netrc@v2
with:
machine: maven.pkg.github.com
username: <username>
password: <password>
but I believe each of these will call the post-action from #9 , and because the first call will have deleted the netrc file already, subsequent attempts fail with:
ENOENT: no such file or directory, unlink '/Users/runner/.netrc'
Github says: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: extractions/netrc@v1
If a password contains characters that can be URI encoded it will be changed and stored in the .netrc file.
As an example I had a password where the first characters was %
which got changed to %25
can you maybe add a post section to delete the file from the runner?
Hi, thanks for building this action! We have found it to be very useful
I saw that you recently made changes to update for Node 16 support (823ae2f) and I wondered if you could make a new tag release so that we could specify @2
or continue using @1
? We currently are using @trunk
without any issues
For example, Python's netrc module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.