Skip to content

Commit 04b8fd0

Browse files
committed
dont use codeql
1 parent af85507 commit 04b8fd0

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/secret-scan.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ jobs:
4646
llm-port: '8080'
4747
manage-llm-server: 'true'
4848

49-
- name: Upload SARIF to GitHub Security
50-
uses: github/codeql-action/upload-sarif@v4
49+
- name: Upload SARIF as artifact
50+
uses: actions/upload-artifact@v4
5151
if: always()
5252
with:
53-
sarif_file: gosecretscanner-results.sarif
53+
name: secret-scan-sarif
54+
path: gosecretscanner-results.sarif
5455
continue-on-error: true
5556

5657
# Job for code quality checks

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,12 @@ runs:
275275
exit 1
276276
fi
277277
278-
- name: Upload SARIF to GitHub Security
278+
- name: Upload SARIF as artifact
279279
if: inputs.sarif-file != '' && always()
280-
uses: github/codeql-action/upload-sarif@v4
280+
uses: actions/upload-artifact@v4
281281
with:
282-
sarif_file: ${{ inputs.sarif-file }}
282+
name: secret-scan-sarif
283+
path: ${{ inputs.sarif-file }}
283284
continue-on-error: true
284285

285286
- name: Stop llama.cpp server

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ func main() {
411411
}
412412

413413
// Helper to print status messages (stderr for JSON/SARIF, stdout for text)
414-
outputFormat := *output
414+
outFmt := *outputFormat
415415
statusPrint := func(format string, args ...interface{}) {
416-
if outputFormat == "json" || outputFormat == "sarif" {
416+
if outFmt == "json" || outFmt == "sarif" {
417417
fmt.Fprintf(os.Stderr, format, args...)
418418
} else {
419419
fmt.Printf(format, args...)

0 commit comments

Comments
 (0)