Skip to content

AX-1706 - Add JFrog CLI credential support to inject-instructions#20

Open
MatanEden1 wants to merge 3 commits into
mainfrom
AX-1706-claude-plugin-add-support-for-jf-cli
Open

AX-1706 - Add JFrog CLI credential support to inject-instructions#20
MatanEden1 wants to merge 3 commits into
mainfrom
AX-1706-claude-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:04
Resolve credentials from env vars, falling back to the JFrog CLI's
default server via 'jf config export'. Users with the JFrog CLI
configured but no env vars set now get agent guard instructions
injected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…hook injection 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, network-access note, --login OAuth
  note, network/403 troubleshooting; 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