You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass the tools.lock OCM version to install.sh as OCM_VERSION (without the v prefix), so the pinned version is installed.
Why
The ocm target set VERSION_OCM, but install.sh reads OCM_VERSION. The pin was ignored and every install resolved releases/latest, so consumers silently got whatever OCM version was newest, and the .ocm-version check never matched the installed binary.
Ran make test in solution-arsenal (dev-kit v4.0.0) with this common.mk: the install resolved releases/tags/v0.51.0 from tools.lock, ocm version reports 0.51.0, and all suites pass.
Checklist
Tests added/updated, or confirmed that no tests are required
No breaking changes, or upgrade path documented above
Readable commit history (squashed and cleaned up as desired)
AI code review considered and comments resolved
Summary by CodeRabbit
Chores
Updated how the installer receives the OCM version. The version continues to be provided without its leading “v,” and the recorded version marker remains unchanged.
No changes to the available features or the version users receive.
No actionable comments were generated in the recent review.
Walkthrough
The OCM installer invocation now passes the version through OCM_VERSION instead of VERSION_OCM. The install path and recorded version marker remain unchanged.
Changes: OCM installer
Layer / File(s)
Summary
Pass version to installer common.mk
The installer receives the version through OCM_VERSION. The version value remains stripped of its leading v, and .ocm-version continues to record the full version.
The pinned OCM version is passed through the installer’s expected variable, with no actionable merge risk identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: pinning the OCM CLI version from tools.lock.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description follows the repository template. It has What, Why, Testing, and Checklist sections, and the Notes for reviewers section is omitted. The What section states the change: the tools.lock O…
Full details: Description check
Explanation
The description follows the repository template. It has What, Why, Testing, and Checklist sections, and the Notes for reviewers section is omitted. The What section states the change: the tools.lock OCM version is passed to install.sh as OCM_VERSION without the v prefix. The Why section explains the root cause: the target set VERSION_OCM while install.sh reads OCM_VERSION, so the pin was ignored and installs resolved releases/latest. The Testing section gives concrete evidence: make test ran with dev-kit v4.0.0, the install resolved releases/tags/v0.51.0, ocm version reported 0.51.0, and all suites passed. The Closes # line in the What section has no issue number, which is a minor gap. The Notes for reviewers section is optional and can be deleted when not applicable, so its absence is acceptable. All checklist items are ticked.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use path_filters to narrow the review scope.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 5a5df4d7-c988-48e7-9443-7d5517af81f4
Commits
Reviewing files that changed from the base of the PR and between 983ddfc and fe67902.
Files selected for processing: 1
common.mk
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pass the
tools.lockOCM version toinstall.shasOCM_VERSION(without thevprefix), so the pinned version is installed.Why
The
ocmtarget setVERSION_OCM, butinstall.shreadsOCM_VERSION. The pin was ignored and every install resolvedreleases/latest, so consumers silently got whatever OCM version was newest, and the.ocm-versioncheck never matched the installed binary.See https://github.com/opendefensecloud/solution-arsenal/actions/runs/42020550629/job/127225217814#step:5:518.
Testing
Ran
make testin solution-arsenal (dev-kit v4.0.0) with thiscommon.mk: the install resolvedreleases/tags/v0.51.0fromtools.lock,ocm versionreports 0.51.0, and all suites pass.Checklist
Summary by CodeRabbit