AX-1705 - Add JFrog CLI credential support to inject-instructions#29
Open
MatanEden1 wants to merge 3 commits into
Open
AX-1705 - Add JFrog CLI credential support to inject-instructions#29MatanEden1 wants to merge 3 commits into
MatanEden1 wants to merge 3 commits into
Conversation
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>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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.v6to.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.bakand blank env vars inline. Expect:'jf config export' failed→No JFrog credentials resolved→Agent Guard not enabled. Stdout must be{}. Restore the file after.