Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
usage with jfrog artifactory? #138
Comments
|
I would recommend creating a community action which is setup-artifactory. |
|
Wasn't #48 ( |
|
always-auth is an npm specific setting which artifactory happens to need. I think doing things like that is fine. But as soon as the features / concepts / inputs are jfrog / artifactory specific (and I'm not sure what those would be) I think it should be a different setup action. So I guess that's the next question, what exactly is the ask? Does Artifactory not work with an auth token? A revokable token is better security wise than entering basic credentials for a standing user. |
|
I found we need to be able to set registry, _auth, email, and always-auth in npmrc file to work with Artifactory. I believe _auth and email are the two which are missing from this currently. |
It does not, unfortunately. It does provide both user credential and access token (their own) support for builds using My .npmrc's don't contain email, and work with just the following:
The way we've generally implemented this for usage in docker development environments and the like is to set the environment variables EDIT: Just verified that this works w/ artifactory. (.npmrc file is checked into the repo w/ the
|
|
Anyone got setup-node to work with JFROG npm private repo? cant seem to get the authentication going correctly here |
|
I couldn't make @Lykathia's setup to work, so as a workaround, I had to create
make sure to remove the |
|
@lub0v-parsable you're awesome! At my company we encode some attributes as part of our token, so I had to wrap the |
I've been struggling with using this action with my on-premise artifactory instance (to save a release) and it looks like authTokens are not only not supported by it, but it also causes its URL parser to trip. I've tried reproducing what the action is doing in a simple docker image and with the following steps roughly, I get the 404 that leads me to believe artifactory is parsing the :_authToken part wrong.
Am I doing things wrong here? Is it within the scope of this action / development to support e.g. artifactory? Should I send a pull request that gets rid of auth tokens and allows working with e.g. the basic _auth method?