Introduces package-alias support to the setup-jfrog-cli action (#332)#341
Open
agrasth wants to merge 1 commit into
Open
Introduces package-alias support to the setup-jfrog-cli action (#332)#341agrasth wants to merge 1 commit into
agrasth wants to merge 1 commit into
Conversation
bhanurp
approved these changes
Jun 8, 2026
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.
npm run formatfor formatting the code before submitting the pull request.Summary
This PR introduces package-alias support to the
setup-jfrog-cliaction. Package-alias (codenamed "GhostFrog") enables transparent interception of native package manager commands (mvn,docker,npm,go,pip, etc.) and routes themthrough JFrog CLI automatically, without requiring users to change their build scripts to use the
jfprefix.What's New
New Action Inputs
enable-package-alias(boolean, default:false) — Enable package aliasingpackage-alias-tools(string, comma-separated list) — Which tools to alias (e.g.,mvn,docker,npm)How It Works
When enabled, the action:
jf package-alias installto create thin shims for specified tools~/.jfrog/package-alias/bin/toPATHJFROG_CLI_GHOST_FROG=truein job-level environment (enables shim interception)When a user runs
mvn deploy, the shim intercepts it and rewrites it tojf mvn deploytransparently, preserving all JFrog integrations (Artifactory routing, build-info, etc.).Supported Tools
mvn,gradle,npm,yarn,go,pip,pipenv,poetry,dotnet,nuget,docker,pnpm,gem,bundleUsage Example