Skip to content

Pass project to indexer - #912

Merged
attiasas merged 3 commits into
jfrog:devfrom
attiasas:pass_project_to_indexer
Oct 7, 2026
Merged

attiasas merged 3 commits into
jfrog:devfrom
attiasas:pass_project_to_indexer

Conversation

@attiasas

@attiasas attiasas commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator
  • 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.

Summary by CodeRabbit

  • New Features
    • Scans now pass the selected project key to software bill of materials generation. When provided, the key is included in the information sent to Xray, so scan results can be associated with the corresponding project. Existing scans without a project key continue to work as before.

@attiasas
attiasas requested a review from a team October 7, 2026 07:31
@attiasas attiasas added improvement Automatically generated release notes safe to test Approve running integration tests on a pull request labels Oct 7, 2026
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 224ae258-af1e-495e-bf3c-e76c6ab31633

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2348584d-8f97-4137-bae6-43bdfaaf9214
📥 Commits

Reviewing files that changed from the base of the PR and between 4ce31bf and ab10c20.

📒 Files selected for processing (3)
  • commands/scan/scan.go
  • sca/bom/indexer/indexerbom.go
  • sca/bom/indexer/indexerbom_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The scan passes its project key to the indexer BOM generator. The generator includes the key in its environment variables when the key is nonempty. Tests cover cases with and without a project key.

Changes

Project Key Propagation

Layer / File(s) Summary
Configure the indexer project key
commands/scan/scan.go, sca/bom/indexer/indexerbom.go, sca/bom/indexer/indexerbom_test.go
The scan passes its project key to the indexer BOM generator. The generator adds JFROG_XRAY_PROJECT_KEY when the key is nonempty. Tests cover cases with and without the key.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to ab10c

Nonempty scan project keys are forwarded to the indexer. Available evidence does not establish a harmful effect when the scan key is empty, so no concrete merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: passing the project key to the indexer.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 7, 2026
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Oct 7, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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


@attiasas
attiasas merged commit fb2bb15 into jfrog:dev Oct 7, 2026
65 of 66 checks passed
@attiasas
attiasas deleted the pass_project_to_indexer branch October 7, 2026 10:17

This branch was previously deployed

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

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants