diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 90e05c40..0f95de25 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,9 +3,12 @@ # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +--- version: 2 updates: - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/linters/.checkov.yaml b/.github/linters/.checkov.yaml index 937b2a0b..55e40987 100644 --- a/.github/linters/.checkov.yaml +++ b/.github/linters/.checkov.yaml @@ -1,3 +1,4 @@ +--- skip-framework: - cloudformation skip-path: diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml index 5e10a88a..3739535f 100644 --- a/.github/linters/.golangci.yml +++ b/.github/linters/.golangci.yml @@ -1,4 +1,51 @@ +--- version: "2" issues: new-from-rev: origin/main +linters: + enable: + - gocritic + - gosec + - revive + - unconvert + - unparam + - wastedassign + - whitespace + settings: + errcheck: + check-blank: true + gocritic: + disabled-checks: + - singleCaseSwitch + - appendAssign + revive: + severity: warning + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + rules: + - linters: + - dupl + - goconst + - gosec + path: _test\.go + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ + - \.pb\.go diff --git a/.github/linters/.protolintrc.yml b/.github/linters/.protolintrc.yml index 7bb2bd1e..057e733b 100644 --- a/.github/linters/.protolintrc.yml +++ b/.github/linters/.protolintrc.yml @@ -1,3 +1,4 @@ +--- lint: rules: remove: # TODO: fix proto files and remove these. diff --git a/.github/linters/trivy.yaml b/.github/linters/trivy.yaml index fc175b68..3aae1170 100644 --- a/.github/linters/trivy.yaml +++ b/.github/linters/trivy.yaml @@ -1,3 +1,4 @@ +--- scan: skip-dirs: - manifests