Skip to content

Fix empty local Artifact path for results cdx upload endpoint - #901

Merged
eranturgeman merged 2 commits into
jfrog:devfrom
eranturgeman:fix-empty-local-artifact-path-on-cdx-upload
Oct 1, 2026
Merged

eranturgeman merged 2 commits into
jfrog:devfrom
eranturgeman:fix-empty-local-artifact-path-on-cdx-upload

Conversation

@eranturgeman

Copy link
Copy Markdown
Contributor
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

This PR fixes a bug where results-cdx artifact local path come out empty when 3 conditions are met:

  1. No git context, hence we cannot extract user name from git context
  2. Cannot extract username from Access token when we have reference token set
  3. Have no user configured in the server details

When this happens we simply set the local artifact path to be "unknown" as we do not put results directly under the binary repo by design

@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 078a04e6-31d3-43c2-a5ba-c0de4851ffab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@eranturgeman
eranturgeman requested a review from a team October 1, 2026 06:53
Comment thread utils/results/output/reportartifact.go Resolved
@attiasas attiasas added bug Something isn't working safe to test Approve running integration tests on a pull request labels Oct 1, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 1, 2026
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Oct 1, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@eranturgeman
eranturgeman merged commit 04e966f into jfrog:dev Oct 1, 2026
120 of 123 checks passed

This branch was previously deployed

1 inactive deployment
frogbot — b98c6946 Deployed Oct 1, 2026 by eranturgeman via scan-pull-request #4627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants