Skip to content

Commit c20faa2

Browse files
feat: Reorder CodeQL initialization and enhance build verbosity in security workflow
1 parent 64e7e67 commit c20faa2

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/security.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,30 @@ jobs:
5959
- name: Checkout repository
6060
uses: actions/checkout@v4
6161

62-
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@v3
64-
with:
65-
languages: go
66-
queries: security-and-quality
67-
6862
- name: Set up Go
6963
uses: actions/setup-go@v5
7064
with:
7165
go-version-file: go.mod
7266
check-latest: true
7367

68+
- name: Initialize CodeQL
69+
uses: github/codeql-action/init@v3
70+
with:
71+
languages: go
72+
queries: security-and-quality
73+
7474
- name: Build project
7575
run: |
7676
go mod download
77-
go build ./...
77+
go build -v ./...
7878
7979
- name: Perform CodeQL Analysis
8080
uses: github/codeql-action/analyze@v3
8181
with:
8282
category: "/language:go"
83+
upload: true
84+
with:
85+
category: "/language:go"
8386

8487
dependency-review:
8588
name: Dependency Review

0 commit comments

Comments
 (0)