question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using jfrog/setup-jfrog-cli without internet access

See original GitHub issue

Is your feature request related to a problem? Please describe. We have noticed that this action calls out to the internet to download the latest cli files. We use GitHub Enterprise Server, and due to company restrictions, we cannot access the internet from our action, therefore this action is currently a problem for us. Here’s an example of where the remote url to download the jfrog cli is hardcoded.

https://github.com/jfrog/setup-jfrog-cli/blob/master/src/utils.ts

image

Describe the solution you’d like to see Can we add a parameter to specify the location (internal) to download the CLI? For example:

- uses: jfrog/setup-jfrog-cli@v2
  with:
    - path: https://internallocation.mycompany.com/jfrog-cli 

Describe alternatives you’ve considered One alternative is to fork and make the change ourselves, but we’d prefer to use the public action. We suspect there are others with similar requirements who would benefit from this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
croydondiasmscommented, Apr 5, 2022

Hi @yahavi ,

That looks like a good solution, and would work our firmwide Artifactory instance.

1reaction
yahavicommented, Apr 10, 2022

Hi @samsmithnz, thanks for requesting this feature! 🚀

We had a team conversation about it and we think that the solution should be a bit different - instead of providing a full URL, provide a name of a remote generic repository in Artifactory pointing to https://releases.jfrog.io/artifactory/jfrog-cli/. For example:

- uses: jfrog/setup-jfrog-cli@v2
  with:
    repo: jfrog-cli-remote

This suggested solution is similar to the one used in the JFrog Azure DevOps extension: https://www.jfrog.com/confluence/display/JFROG/JFrog+Azure+DevOps+Extension#JFrogAzureDevOpsExtension-JFrogToolsInstaller

We will add this feature to our plan and will keep you updated. Please let me know what do you think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No Internet? No Problem. Use Artifactory with an Air Gap
In this scenario, the two Artifactory instances have no network connection between them. To get dependencies from the internet, the external ...
Read more >
Using jfrog/setup-jfrog-cli without internet access #171
Set up JFrog CLI in your GitHub Actions workflow. ... Using jfrog/setup-jfrog-cli without internet access #171. Sign in to view logs · Sign...
Read more >
How to configure JFrog CLI to work with Artifactory? - YouTube
In this tutorial we demonstrate how to set up and use the JFrog CLI.See the JFrog CLI documentation: ...
Read more >
Jfrog CLI action global config
You can try and follow JFrog's CLI documentation for adding global configuration. Please note that JFrog's CLI does allow using basic ...
Read more >
JFrog | Jenkins plugin
If your agent has access to the internet, you can set the installer to automatically download JFrog CLI from https://releases.jfrog.io as shown in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found