-
Notifications
You must be signed in to change notification settings - Fork 241
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
Invalid return url from build scan since 2.60.0 #2629
Comments
Hello @santhonisz Thanks for reporting this. these details can be found in ~/.jfrog jfrog-cli.conf file (can be v1,v2,v3,v4,v5,v6) don't share password/access-token only share the following:
|
Hi @dortam888, Ok, checking the file I can see that only
I think I've figured out why this is. We are running the Xray scan in a CI pipeline, where the required JFrog server configuration is added with the following command. Note we don't pass the
Interestingly if I run this command locally I get prompted to supply the JFrog Platform URL, but as our CI build agents define None of this changes the fact that the code added in jfrog/jfrog-cli-security#106 should probably be smartened up to handle when the JFrog Platform URL is not supplied e.g. is empty, in which case it should fall back to the previous behaviour or possibly use the |
Thanks @santhonisz |
@santhonisz the PR for fix is merged and will be released in the next version of the JFrog CLI. |
Hey @santhonisz, I'm closing this issue, but feel free to reopen it if needed. |
Describe the bug
We have noticed that since updating to the latest 2.61.2 release, the
xray_data_url
value being returned from runningjf build-scan
is no longer a valid URL as it does not contain the Xray host name.It would appear to be related to the changes from jfrog/jfrog-cli-security#106 that were added in 2.60.0
I am wondering if it is related to the fact that we supply the
--server-id
argument to thejf build-scan
command?Current behavior
Receive results similar to the following (note the incomplete URL):
Reproduction steps
For an Artifactory/Xray instance with a different API Base URL compared to the CLI:
jf config add 'SERVER-ID' ...
jf build-scan --server-id 'SERVER-ID' ...
Expected behavior
Given the example in the current behaviour, we'd expect to see the following as the returned URL:
JFrog CLI version
2.60.0
Operating system type and version
Linux
JFrog Artifactory version
No response
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: