Skip to content

Pass current Xray version to AM#726

Open
attiasas wants to merge 2 commits intojfrog:devfrom
attiasas:pass_xray_version_to_am
Open

Pass current Xray version to AM#726
attiasas wants to merge 2 commits intojfrog:devfrom
attiasas:pass_xray_version_to_am

Conversation

@attiasas
Copy link
Copy Markdown
Collaborator

feat(jas): pass Xray version to Analyzer Manager via JF_XRAY_VERSION

Summary

GetAnalyzerManagerXscEnvVars now takes the current Xray version and always injects it into the JAS / Analyzer Manager environment as JF_XRAY_VERSION. Audit and binary scan flows pass the resolved version from command parameters; malicious scan passes an empty version with an updated argument list. Tests are updated for the new parameter and expected env map shape.

Changes

  • jas/common.go: Extend GetAnalyzerManagerXscEnvVars with xrayVersion string; include JF_XRAY_VERSION in the base env map.
  • jas/analyzermanager.go: Add constant jfXrayVersionEnvVariable (JF_XRAY_VERSION).
  • commands/audit/audit.go: Pass auditParams.GetXrayVersion() into GetAnalyzerManagerXscEnvVars.
  • commands/scan/scan.go: Pass scanCmd.xrayVersion for binary JAS scans.
  • commands/maliciousscan/maliciousscan.go: Adjust call for the new parameter (empty Xray version).
  • Tests: jas/common_test.go (struct field, expectations, row for non-empty version); jas/runner/jasrunner_test.go (extra "" argument).

@attiasas attiasas added ignore for release Automatically generated release notes safe to test Approve running integration tests on a pull request labels Apr 14, 2026
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 14, 2026
@github-actions
Copy link
Copy Markdown

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


@attiasas attiasas requested a review from a team April 14, 2026 11:00
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Apr 19, 2026
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore for release Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant