Skip to content

Commit 33652a0

Browse files
committed
chore: fix codeql build
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent fc329e0 commit 33652a0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ jobs:
5252

5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
55+
#- name: Autobuild
56+
# uses: github/codeql-action/autobuild@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6060

6161
# If the Autobuild fails above, remove it and uncomment the following three lines.
6262
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6363

64-
# - run: |
65-
# echo "Run, Build Application using script"
66-
# ./location_of_script_within_repo/buildscript.sh
64+
- name: Build Go
65+
run: |
66+
go build -v
6767
6868
- name: Perform CodeQL Analysis
6969
uses: github/codeql-action/analyze@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ $(GOLANGCI_LINT):
3131
-o ./bin/golangci-lint \
3232
github.com/golangci/golangci-lint/cmd/golangci-lint
3333

34+
.PHONY: build
35+
build: vendor
36+
go build -v
37+
3438
.PHONY: lint
3539
lint: $(GOLANGCI_LINT)
3640
$(GOLANGCI_LINT) run --timeout=10m

0 commit comments

Comments
 (0)