-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into devops/add-docker-security-r3
- Loading branch information
Showing
41 changed files
with
2,407 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,14 @@ jobs: | |
lint_test: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
with: | ||
run-unit-tests: true | ||
run-integration-tests: true | ||
run-lint: true | ||
go-version: '1.23' | ||
go-lint-version: 'v1.60.2' | ||
run-unit-tests: true | ||
run-integration-tests: true | ||
run-lint: true | ||
|
||
docker_pipeline: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
publish: false | ||
publish: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,11 @@ jobs: | |
lint_test: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
with: | ||
run-unit-tests: true | ||
run-integration-tests: true | ||
run-lint: true | ||
go-version: '1.23' | ||
go-lint-version: 'v1.60.2' | ||
run-unit-tests: true | ||
run-integration-tests: true | ||
run-lint: true | ||
|
||
docker_pipeline: | ||
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@huy/add-docker-sec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
run: | ||
timeout: 5m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
- dogsled | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- forbidigo | ||
- forcetypeassert | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- goheader | ||
- gomodguard | ||
- goprintffuncname | ||
- gosimple | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
- misspell | ||
- nakedret | ||
- nilerr | ||
# - nlreturn # Style wise I personally like this one, todo(lazar): unlax at somepoint, good practice | ||
- noctx | ||
- nonamedreturns | ||
- nosprintfhostport | ||
- paralleltest | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tenv | ||
- testableexamples | ||
- tparallel | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- usestdlibvars | ||
- unused | ||
- wastedassign | ||
- whitespace | ||
# - wrapcheck # we really should be using this, lax for now todo(lazar): unlax at somepoint, good practice | ||
|
||
issues: | ||
max-same-issues: 0 | ||
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions | ||
exclude-dirs: | ||
- e2etest | ||
- itest | ||
exclude-rules: | ||
# Exclude some linters from running on tests files. | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
- gocritic | ||
- path-except: _test\.go | ||
linters: | ||
- forbidigo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.