-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the ability to create a .npmrc file using JFrog CLI for smoother integration with GitHub Actions. #2512
Comments
@ashrithacjfrog Feel free to reach out if you have any further questions or need clarification! |
We have a comparable use case that may clarify the requirements, why this would be a very handy feature. Our developers work on numerous projects simultaneously. Local development necessitates authentication and system setup for multiple package managers such as |
@skycaptain You can build an npm project in two steps:
Behind the scenes, the JFrog CLI executes Read more about JFrog CLI integration with npm here. |
when building multiarch docker images, i typically would mount npmrc as a build secret. it would mae more sense to generate the npmrc once on the runner than to install jfrog cli in my builder and login there, potentially leaving sensitive artifacts behind. |
Until this improvement is finalized, you can streamline your workflow in GitHub Actions by dynamically creating the - name: Create .npmrc file
run: |
echo "//myenv.jfrog.io/artifactory/api/npm/<YOUR_REPO_KEY>/:_authToken=${{ secrets.ACCESS_TOKEN }}" >> .npmrc
echo "registry=https://myenv.jfrog.io/artifactory/api/npm/<YOUR_REPO_KEY>/" >> .npmrc This ensures the I guess you would want to hold all this content inside a secret, that can work as well |
Problem statement: When setting up GitHub Actions for continuous integration and deployment, there's currently no straightforward way to generate a .npmrc file using JFrog CLI other that using the curl command “-uadmin: http://<ARTIFACTORY_SERVER_DOMAIN>:8081/artifactory/api/npm/auth” .
Looking for an option to integrate GitHub with JFrog using OpenID Connect without requiring any user credentials on GitHub.
Feature Description: The goal is to allow developers to easily create the .npmrc file they need for accessing npm packages through JFrog Artifactory using JFrog CLI.
Expected Outcome: By implementing this feature, developers will be able to seamlessly create .npmrc files using JFrog CLI within their GitHub Actions workflows (without providing the credentials during the GitHub configuration).
The text was updated successfully, but these errors were encountered: