@@ -30,16 +30,16 @@ jobs:
3030 GOARCH : amd64
3131 POSTHOG_WEB_ANALYTICS : ${{ secrets.POSTHOG_WEB_ANALYTICS }}
3232 run : |
33- cd sourcecode-parser
33+ cd sast-engine
3434 gitCommit=$(git describe --tags)
3535 projectVersion=$(cat VERSION)
3636 posthogkey=$(echo $POSTHOG_WEB_ANALYTICS)
37- go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-amd64 .
37+ go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine /analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-amd64 .
3838 chmod +x pathfinder-linux-amd64
3939
4040 - name : Calculate SHA256
4141 run : |
42- cd sourcecode-parser
42+ cd sast-engine
4343 sha256sum pathfinder-linux-amd64 > pathfinder-linux-amd64.sha256sum.txt
4444 cp pathfinder-linux-amd64 pathfinder
4545 tar -czvf pathfinder-linux-amd64.tar.gz pathfinder
4949 with :
5050 name : pathfinder-linux-amd64
5151 path : |
52- sourcecode-parser /pathfinder-linux-amd64
53- sourcecode-parser /pathfinder-linux-amd64.sha256sum.txt
54- sourcecode-parser /pathfinder-linux-amd64.tar.gz
52+ sast-engine /pathfinder-linux-amd64
53+ sast-engine /pathfinder-linux-amd64.sha256sum.txt
54+ sast-engine /pathfinder-linux-amd64.tar.gz
5555
5656 build-linux-arm64 :
5757 runs-on : ubuntu-24.04-arm # Native ARM64 runner (public repos only)
@@ -73,16 +73,16 @@ jobs:
7373 CGO_ENABLED : 1 # Required for tree-sitter
7474 POSTHOG_WEB_ANALYTICS : ${{ secrets.POSTHOG_WEB_ANALYTICS }}
7575 run : |
76- cd sourcecode-parser
76+ cd sast-engine
7777 gitCommit=$(git describe --tags)
7878 projectVersion=$(cat VERSION)
7979 posthogkey=$(echo $POSTHOG_WEB_ANALYTICS)
80- go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-arm64 .
80+ go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine /analytics.PublicKey=${posthogkey}" -v -o pathfinder-linux-arm64 .
8181 chmod +x pathfinder-linux-arm64
8282
8383 - name : Calculate SHA256
8484 run : |
85- cd sourcecode-parser
85+ cd sast-engine
8686 sha256sum pathfinder-linux-arm64 > pathfinder-linux-arm64.sha256sum.txt
8787 cp pathfinder-linux-arm64 pathfinder
8888 tar -czvf pathfinder-linux-arm64.tar.gz pathfinder
9292 with :
9393 name : pathfinder-linux-arm64
9494 path : |
95- sourcecode-parser /pathfinder-linux-arm64
96- sourcecode-parser /pathfinder-linux-arm64.sha256sum.txt
97- sourcecode-parser /pathfinder-linux-arm64.tar.gz
95+ sast-engine /pathfinder-linux-arm64
96+ sast-engine /pathfinder-linux-arm64.sha256sum.txt
97+ sast-engine /pathfinder-linux-arm64.tar.gz
9898
9999 build-windows :
100100 runs-on : windows-latest
@@ -115,15 +115,15 @@ jobs:
115115 GOARCH : amd64
116116 POSTHOG_WEB_ANALYTICS : ${{ secrets.POSTHOG_WEB_ANALYTICS }}
117117 run : |
118- cd sourcecode-parser
118+ cd sast-engine
119119 $gitCommit = (git describe --tags).Trim()
120120 $projectVersion = Get-Content VERSION
121121 $posthogkey=$env:POSTHOG_WEB_ANALYTICS
122- go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /analytics.PublicKey=${posthogkey}" -v -o pathfinder-windows-amd64.exe .
122+ go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine /analytics.PublicKey=${posthogkey}" -v -o pathfinder-windows-amd64.exe .
123123
124124 - name : Calculate SHA256
125125 run : |
126- cd sourcecode-parser
126+ cd sast-engine
127127 Get-FileHash -Algorithm SHA256 pathfinder-windows-amd64.exe | Select-Object Hash | Out-File -Encoding UTF8 pathfinder-windows-amd64.exe.sha256sum.txt
128128 Copy-Item pathfinder-windows-amd64.exe pathfinder.exe
129129 Compress-Archive -Path pathfinder.exe -DestinationPath pathfinder-windows-amd64.zip
@@ -133,9 +133,9 @@ jobs:
133133 with :
134134 name : pathfinder-windows-amd64
135135 path : |
136- sourcecode-parser /pathfinder-windows-amd64.exe
137- sourcecode-parser /pathfinder-windows-amd64.exe.sha256sum.txt
138- sourcecode-parser /pathfinder-windows-amd64.zip
136+ sast-engine /pathfinder-windows-amd64.exe
137+ sast-engine /pathfinder-windows-amd64.exe.sha256sum.txt
138+ sast-engine /pathfinder-windows-amd64.zip
139139
140140 build-macos :
141141 runs-on : macos-latest
@@ -156,16 +156,16 @@ jobs:
156156 GOARCH : arm64
157157 POSTHOG_WEB_ANALYTICS : ${{ secrets.POSTHOG_WEB_ANALYTICS }}
158158 run : |
159- cd sourcecode-parser
159+ cd sast-engine
160160 gitCommit=$(git describe --tags)
161161 projectVersion=$(cat VERSION)
162162 posthogkey=$(echo $POSTHOG_WEB_ANALYTICS)
163- go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-arm64 .
163+ go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine /analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-arm64 .
164164 chmod +x pathfinder-darwin-arm64
165165
166166 - name : Calculate SHA256
167167 run : |
168- cd sourcecode-parser
168+ cd sast-engine
169169 shasum -a 256 pathfinder-darwin-arm64 > pathfinder-darwin-arm64.sha256sum.txt
170170 cp pathfinder-darwin-arm64 pathfinder
171171 tar -czvf pathfinder-darwin-arm64.tar.gz pathfinder
@@ -175,9 +175,9 @@ jobs:
175175 with :
176176 name : pathfinder-darwin-arm64
177177 path : |
178- sourcecode-parser /pathfinder-darwin-arm64
179- sourcecode-parser /pathfinder-darwin-arm64.sha256sum.txt
180- sourcecode-parser /pathfinder-darwin-arm64.tar.gz
178+ sast-engine /pathfinder-darwin-arm64
179+ sast-engine /pathfinder-darwin-arm64.sha256sum.txt
180+ sast-engine /pathfinder-darwin-arm64.tar.gz
181181
182182 build-macos-intel :
183183 runs-on : macos-13 # Last Intel-based macOS runner
@@ -199,16 +199,16 @@ jobs:
199199 CGO_ENABLED : 1 # Required for tree-sitter
200200 POSTHOG_WEB_ANALYTICS : ${{ secrets.POSTHOG_WEB_ANALYTICS }}
201201 run : |
202- cd sourcecode-parser
202+ cd sast-engine
203203 gitCommit=$(git describe --tags)
204204 projectVersion=$(cat VERSION)
205205 posthogkey=$(echo $POSTHOG_WEB_ANALYTICS)
206- go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sourcecode-parser /analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-amd64 .
206+ go build -ldflags="-s -w -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.Version=${projectVersion} -X github.com/shivasurya/code-pathfinder/sast-engine /cmd.GitCommit=${gitCommit} -X github.com/shivasurya/code-pathfinder/sast-engine /analytics.PublicKey=${posthogkey}" -v -o pathfinder-darwin-amd64 .
207207 chmod +x pathfinder-darwin-amd64
208208
209209 - name : Calculate SHA256
210210 run : |
211- cd sourcecode-parser
211+ cd sast-engine
212212 shasum -a 256 pathfinder-darwin-amd64 > pathfinder-darwin-amd64.sha256sum.txt
213213 cp pathfinder-darwin-amd64 pathfinder
214214 tar -czvf pathfinder-darwin-amd64.tar.gz pathfinder
@@ -218,9 +218,9 @@ jobs:
218218 with :
219219 name : pathfinder-darwin-amd64
220220 path : |
221- sourcecode-parser /pathfinder-darwin-amd64
222- sourcecode-parser /pathfinder-darwin-amd64.sha256sum.txt
223- sourcecode-parser /pathfinder-darwin-amd64.tar.gz
221+ sast-engine /pathfinder-darwin-amd64
222+ sast-engine /pathfinder-darwin-amd64.sha256sum.txt
223+ sast-engine /pathfinder-darwin-amd64.tar.gz
224224
225225 release :
226226 needs : [build-linux, build-linux-arm64, build-windows, build-macos, build-macos-intel]
0 commit comments