diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 977a49b..45a7cab 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,3 +15,9 @@ updates: ignore: - dependency-name: "golang" update-types: ["version-update:semver-minor"] + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "torilabs" diff --git a/.github/workflows/dependabot-validator.yml b/.github/workflows/dependabot-validator.yml index 8ded5e8..c339076 100644 --- a/.github/workflows/dependabot-validator.yml +++ b/.github/workflows/dependabot-validator.yml @@ -5,6 +5,7 @@ on: paths: - '.github/dependabot.yml' - '.github/workflows/dependabot-validator.yml' + jobs: test: name: verify-dependabot @@ -13,8 +14,3 @@ jobs: - uses: actions/checkout@v3 - uses: marocchino/validate-dependabot@v2 id: validate - - uses: marocchino/sticky-pull-request-comment@v2 - if: always() - with: - header: validate-dependabot - message: ${{ steps.validate.outputs.markdown }} diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 98739ca..155a444 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -15,4 +15,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.55.2 + version: v1.61.0 diff --git a/Makefile b/Makefile index a49cc0a..226a651 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ endif check: @echo "Running check" ifeq (, $(shell which golangci-lint)) - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.55.2 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.61.0 endif golangci-lint run go mod tidy diff --git a/cmd/cmd.go b/cmd/cmd.go index 2bf75e8..f683fdb 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -35,7 +35,7 @@ var rootCmd = &cobra.Command{ Long: "IPsec Prometheus Exporter exports Strongswan metrics.", SilenceErrors: true, SilenceUsage: true, - PreRunE: func(cmd *cobra.Command, args []string) (err error) { + PreRunE: func(cmd *cobra.Command, _ []string) (err error) { if err = viper.BindPFlags(cmd.Flags()); err != nil { return } @@ -46,7 +46,7 @@ var rootCmd = &cobra.Command{ } return nil }, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(*cobra.Command, []string) error { if err := log.Setup(cfg); err != nil { return err }