Skip to content

Commit

Permalink
Add dependabot for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-zelenku authored and torilabs committed Nov 3, 2024
1 parent ae4dfe1 commit a94402e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 1 addition & 5 deletions .github/workflows/dependabot-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- '.github/dependabot.yml'
- '.github/workflows/dependabot-validator.yml'

jobs:
test:
name: verify-dependabot
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
version: v1.61.0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit a94402e

Please sign in to comment.