Skip to content

AX-1705 - Add JFrog CLI credential support to inject-instructions#29

Open
MatanEden1 wants to merge 3 commits into
jfrog:mainfrom
MatanEden1:AX-1705-Cursor-plugin-add-support-for-jf_cli
Open

AX-1705 - Add JFrog CLI credential support to inject-instructions#29
MatanEden1 wants to merge 3 commits into
jfrog:mainfrom
MatanEden1:AX-1705-Cursor-plugin-add-support-for-jf_cli

Conversation

@MatanEden1

@MatanEden1 MatanEden1 commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

What

Add support for JF_CLI

Why

Users who have the JFrog CLI configured but no env vars set were not getting agent guard instructions injected.

Validation

Test 1 — env vars only: Rename ~/.jfrog/jfrog-cli.conf.v6 to .v6.bak, run the script with env vars present, restore the file. Expect: Resolved credentials from environment variables.

Test 2 — jf config export fallback: With v6 present, run with JFROG_URL="" JF_URL="" JFROG_ACCESS_TOKEN="" JF_ACCESS_TOKEN="" as inline overrides. Expect: Resolved credentials via 'jf config export' and the full template injected in stdout.

Test 3 — no credentials: Rename v6 to .v6.bak and blank env vars inline. Expect: 'jf config export' failedNo JFrog credentials resolvedAgent Guard not enabled. Stdout must be {}. Restore the file after.

MatanEden1 and others added 3 commits June 22, 2026 16:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…jection validation

- inject-instructions.mjs: add 3s timeout on 'jf config export'; emit
  {} on template read failure (fail-closed, well-formed empty payload)
- jfrog-mcp-management.md: resolve servers via 'jf config show
  --format=json' instead of parsing ~/.jfrog/jfrog-cli.conf.v6; add
  Live-execution pre-flight rule; fix two typos
- add scripts/validate-hook-injector.mjs smoke test + CI workflow

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant