From 843fc134df0bc090c29d8c2958704568b65ca5ba Mon Sep 17 00:00:00 2001 From: Marko Date: Tue, 23 Apr 2024 20:58:05 +0200 Subject: [PATCH] chore: reduce codeql time (#20158) --- .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/gosec.yml | 7 +++++++ Makefile | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d718aa0d3bf1..ed85efa0d1b8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,6 +11,10 @@ on: paths: - "**.go" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 5513ed3d4258..f294ea1d3e95 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -1,6 +1,9 @@ name: Run Gosec on: pull_request: + branches: + - main + - release/** paths: - "**/*.go" - "go.mod" @@ -13,6 +16,10 @@ on: - "go.mod" - "go.sum" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Gosec: permissions: diff --git a/Makefile b/Makefile index 3c139f0daf3a..501202b1be63 100644 --- a/Makefile +++ b/Makefile @@ -96,8 +96,8 @@ ifeq (debug,$(findstring debug,$(COSMOS_BUILD_OPTIONS))) BUILD_FLAGS += -gcflags "all=-N -l" endif -#? all: Run tools build lint test vulncheck -all: tools build lint test vulncheck +#? all: Run tools build +all: build # The below include contains the tools and runsim targets. include contrib/devtools/Makefile @@ -487,4 +487,4 @@ localnet-debug: localnet-stop localnet-build-dlv localnet-build-nodes help: Makefile @echo " Choose a command run in "$(PROJECT_NAME)":" @sed -n 's/^#?//p' $< | column -t -s ':' | sort | sed -e 's/^/ /' -.PHONY: help \ No newline at end of file +.PHONY: help