@@ -60,49 +60,49 @@ jobs:
6060 echo "✅ No uncommented replace directives found in go.mod"
6161 fi
6262
63- Validate-cli-security :
64- name : Validate CLI Security Compatibility
65- runs-on : ubuntu-latest
66- steps :
67- - name : Checkout CLI Core
68- uses : actions/checkout@v5
69- with :
70- ref : ${{ github.event.pull_request.head.sha || github.ref }}
71-
72- - name : Checkout CLI Security
73- uses : actions/checkout@v5
74- with :
75- repository : jfrog/jfrog-cli-security
76- ref : ${{ github.event.inputs.cli_security_branch || 'main' }}
77- path : cli-security
78-
79- - name : Setup Go with cache
80- uses : jfrog/.github/actions/install-go-with-cache@main
81-
82- - name : Get CLI Core absolute path
83- id : cli_core_path
84- run : |
85- CLI_CORE_PATH=$(pwd)
86- echo "cli_core_path=$CLI_CORE_PATH" >> $GITHUB_OUTPUT
87- echo "CLI Core path: $CLI_CORE_PATH"
88-
89- - name : Modify CLI Security go.mod
90- run : |
91- cd cli-security
92-
93- # Add replace directive to use local CLI Core
94- echo "" >> go.mod
95- echo "replace github.com/jfrog/jfrog-cli-core/v2 => ${{ steps.cli_core_path.outputs.cli_core_path }}" >> go.mod
96-
97- # Run go mod tidy to clean up dependencies
98- go mod tidy
99-
100- echo "Modified go.mod with replace directive:"
101- tail -5 go.mod
102-
103- - name : Run go vet on CLI Security
104- run : |
105- cd cli-security
106- echo "Running go vet on CLI Security..."
107- go vet ./...
108- echo "✅ go vet completed successfully - no issues found"
63+ Validate-cli-security :
64+ name : Validate CLI Security Compatibility
65+ runs-on : ubuntu-latest
66+ steps :
67+ - name : Checkout CLI Core
68+ uses : actions/checkout@v5
69+ with :
70+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
71+
72+ - name : Checkout CLI Security
73+ uses : actions/checkout@v5
74+ with :
75+ repository : jfrog/jfrog-cli-security
76+ ref : ${{ github.event.inputs.cli_security_branch || 'main' }}
77+ path : cli-security
78+
79+ - name : Setup Go with cache
80+ uses : jfrog/.github/actions/install-go-with-cache@main
81+
82+ - name : Get CLI Core absolute path
83+ id : cli_core_path
84+ run : |
85+ CLI_CORE_PATH=$(pwd)
86+ echo "cli_core_path=$CLI_CORE_PATH" >> $GITHUB_OUTPUT
87+ echo "CLI Core path: $CLI_CORE_PATH"
88+
89+ - name : Modify CLI Security go.mod
90+ run : |
91+ cd cli-security
92+
93+ # Add replace directive to use local CLI Core
94+ echo "" >> go.mod
95+ echo "replace github.com/jfrog/jfrog-cli-core/v2 => ${{ steps.cli_core_path.outputs.cli_core_path }}" >> go.mod
96+
97+ # Run go mod tidy to clean up dependencies
98+ go mod tidy
99+
100+ echo "Modified go.mod with replace directive:"
101+ tail -5 go.mod
102+
103+ - name : Run go vet on CLI Security
104+ run : |
105+ cd cli-security
106+ echo "Running go vet on CLI Security..."
107+ go vet ./...
108+ echo "✅ go vet completed successfully - no issues found"
0 commit comments