Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
50f2936
Added ghost frog init
bhanurp Nov 12, 2025
e400388
Updated package alias command
bhanurp Nov 27, 2025
e36a7ab
Added demo of ghost frog
bhanurp Dec 1, 2025
aebe74d
Fix workflow YAML syntax and add ghost-frog branch to triggers
bhanurp Dec 1, 2025
ca809ed
Added demo of ghost frog
bhanurp Dec 1, 2025
41d307f
Added jf npm config to npm demo project
bhanurp Dec 1, 2025
2474ca3
Improved npm tests for ghost frog demonstration
bhanurp Dec 1, 2025
aea2667
Added npmc with npm as resolve repo
bhanurp Dec 1, 2025
34a8687
Updated npm other commands script to show jfrog cli logs
bhanurp Dec 1, 2025
f32a445
Added info log
bhanurp Jan 8, 2026
893320f
Merge branch 'jfrog:master' into ghost-frog
bhanurp Feb 12, 2026
b1e9e53
Updated workflow with setup github action
bhanurp Feb 13, 2026
b7f0f90
dummy
bhanurp Feb 13, 2026
f6a3441
Updated to use setup jfrog cli
bhanurp Feb 13, 2026
9957526
Updated project name
bhanurp Feb 13, 2026
eb01d46
Improved package-alias config reading
bhanurp Feb 26, 2026
3b5034d
Updated enable disable status writing logic
bhanurp Feb 26, 2026
7e07bf4
Updated sanity test to use github actions
bhanurp Feb 27, 2026
8b13887
Updated sanity test to use github actions
bhanurp Feb 27, 2026
0efd412
Dummy
bhanurp Feb 27, 2026
7132031
Fixed syntax error on actions
bhanurp Feb 27, 2026
16e8487
Corrected action source
bhanurp Feb 27, 2026
865afea
Merge branch 'master' into ghost-frog
bhanurp Feb 27, 2026
dd8c5ad
Updated jfrog cli version
bhanurp Feb 27, 2026
3f4a52c
Updated ghost demo as default server id
bhanurp Feb 27, 2026
8757df3
Removed all unnecessary files
bhanurp Mar 1, 2026
f618ce9
Fixed static failures
bhanurp Mar 1, 2026
94a7d7d
Merge branch 'master' into ghost-frog
bhanurp Mar 2, 2026
a211c67
Fixed static analysis failures
bhanurp Mar 2, 2026
cca5697
Merge branch 'master' into ghost-frog
bhanurp Mar 2, 2026
de107fd
Fixed unit test failure on windows machine
bhanurp Mar 2, 2026
e50005d
Added a check to proactively detect jf and jfrog
bhanurp Mar 2, 2026
1c4f209
Fixes windows lock file contention issue
bhanurp Mar 2, 2026
d86be11
Fixed multiple edge cases
bhanurp Mar 3, 2026
a0177a7
Marked pnpm gem packages default mode as pass
bhanurp Mar 3, 2026
d9384f1
Merge branch 'master' into ghost-frog
bhanurp Mar 10, 2026
17deb3e
Fix: workflow error
bhanurp Mar 10, 2026
2035ee4
Updated workflows to use github action
bhanurp Mar 10, 2026
70f4298
Updated workflows to run on push
bhanurp Mar 10, 2026
1b94720
Update jfrog cli download path
bhanurp Mar 10, 2026
23c38ed
Fixes for ghost forg workflows
bhanurp Mar 10, 2026
a145d13
Added e2e tests for package alias implementation
bhanurp Mar 10, 2026
4864c0f
Merge branch 'master' into ghost-frog
bhanurp Mar 12, 2026
38e4726
Fixed static check failures
bhanurp Mar 12, 2026
df2777d
Added new test cases
bhanurp Mar 16, 2026
58c6d24
Merge branch 'master' into ghost-frog
bhanurp Mar 16, 2026
624d004
Updated go sum
bhanurp Mar 17, 2026
6117d83
Improved ghost frog tests trigger conditions
bhanurp Mar 17, 2026
a6005c7
Improved the package alias metrics test
bhanurp Mar 17, 2026
b8f2a40
Dummy Commit
bhanurp Mar 19, 2026
17060da
Updated pipc config placement
bhanurp Mar 19, 2026
cf450de
Added some real dependencies for mvn
bhanurp Mar 19, 2026
e744c24
Minor improvements
bhanurp Apr 2, 2026
45bce2b
Merge branch 'master' into ghost-frog
bhanurp Apr 2, 2026
fbd1418
Improvements related to ghost frog tests
bhanurp Apr 2, 2026
31310c1
Updated to use right github action
bhanurp Apr 6, 2026
0320c6b
Merge branch 'master' into ghost-frog
bhanurp Apr 8, 2026
62d526e
Updated setup jfrog cli reference
bhanurp Apr 8, 2026
37ad8fc
Removed tests not required
bhanurp Apr 8, 2026
3ac2537
Removed unnecessary nosec
bhanurp Apr 8, 2026
dd32a53
Merge branch 'master' into ghost-frog
bhanurp Apr 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 52 additions & 6 deletions .github/workflows/ghostFrogTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,70 @@ jobs:
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main

# Build jf/jfrog from source and upload to remote Artifactory.
# setup-jfrog-cli with default version (latest) requests:
# {repo}/v2/[RELEASE]/jfrog-cli-{arch}/{filename}
# We upload to that exact path so the download URL matches.
- name: Build and publish JFrog CLI to Artifactory (Unix)
if: runner.os != 'Windows'
run: |
OS=$(go env GOOS)
ARCH=$(go env GOARCH)
if [ "$OS" = "darwin" ]; then
[ "$ARCH" = "arm64" ] && CLI_ARCH="mac-arm64" || CLI_ARCH="mac-386"
elif [ "$ARCH" = "arm64" ]; then
CLI_ARCH="linux-arm64"
elif [ "$ARCH" = "amd64" ]; then
CLI_ARCH="linux-amd64"
else
CLI_ARCH="linux-386"
fi

REPO="ghost-frog-cli"
UPLOAD_PATH="${REPO}/v2/[RELEASE]/jfrog-cli-${CLI_ARCH}"

go build -o jf .
cp jf jfrog

./jf c add ghost-rt --url=${{ secrets.PLATFORM_URL }} --access-token=${{ secrets.PLATFORM_ADMIN_TOKEN }} --interactive=false
./jf rt repo-create "${REPO}" --repo-type=local --package-type=generic --server-id=ghost-rt 2>/dev/null || true
./jf rt upload jf "${UPLOAD_PATH}/jf" --server-id=ghost-rt --flat
./jf rt upload jfrog "${UPLOAD_PATH}/jfrog" --server-id=ghost-rt --flat
rm -f jf jfrog

- name: Build and publish JFrog CLI to Artifactory (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$REPO = "ghost-frog-cli"
$UPLOAD_PATH = "$REPO/v2/[RELEASE]/jfrog-cli-windows-amd64"

go build -o jf.exe .
Copy-Item jf.exe jfrog.exe

.\jf.exe c add ghost-rt --url=${{ secrets.PLATFORM_URL }} --access-token=${{ secrets.PLATFORM_ADMIN_TOKEN }} --interactive=false
.\jf.exe rt repo-create "$REPO" --repo-type=local --package-type=generic --server-id=ghost-rt 2>$null
.\jf.exe rt upload jf.exe "$UPLOAD_PATH/jf.exe" --server-id=ghost-rt --flat
.\jf.exe rt upload jfrog.exe "$UPLOAD_PATH/jfrog.exe" --server-id=ghost-rt --flat
Remove-Item jf.exe, jfrog.exe -ErrorAction SilentlyContinue

- name: Setup JFrog CLI with package alias
uses: jfrog/setup-jfrog-cli@package-alias
with:
version: 2.93.0
download-repository: bhanu-ghost-frog
download-repository: ghost-frog-cli
enable-package-alias: true
package-alias-tools: npm,mvn,go,pip
custom-server-id: ghost-demo
env:
JF_URL: ${{ secrets.JFROG_URL }}
JF_ACCESS_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }}
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "16"
node-version: "20"

- name: Run Ghost Frog tests
run: go test -v github.com/jfrog/jfrog-cli --timeout 0 --test.ghostFrog
env:
JFROG_CLI_LOG_LEVEL: DEBUG
JFROG_CLI_GHOST_FROG: "true"
4 changes: 2 additions & 2 deletions general/summary/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func saveFile(content, filePath string) (err error) {
if content == "" {
return nil
}
// #nosec G703 -- filePath is constructed from SummaryOutputDirPathEnv set by CLI, not arbitrary user input and filePath is already cleaned.
// #nosec G703 -- filePath is constructed from SummaryOutputDirPathEnv set by CLI, not arbitrary user input and filePath is already cleaned.
file, err := os.Create(filepath.Clean(filePath))
if err != nil {
return err
Expand All @@ -151,7 +151,7 @@ func getSectionMarkdownContent(section MarkdownSection) (string, error) {
if _, err := os.Stat(sectionFilepath); os.IsNotExist(err) {
return "", nil
}
// #nosec G703 -- sectionFilepath is constructed from SummaryOutputDirPathEnv set by CLI, not arbitrary user input
// #nosec G703 -- sectionFilepath is constructed from SummaryOutputDirPathEnv set by CLI, not arbitrary user input
contentBytes, err := os.ReadFile(sectionFilepath)
if err != nil {
return "", fmt.Errorf("error reading markdown file for section %s: %w", section, err)
Expand Down
Loading
Loading