Skip to content

Commit

Permalink
Merge pull request #53 from dell/dependabot/go_modules/migration/goog…
Browse files Browse the repository at this point in the history
…le.golang.org/protobuf-1.33.0

Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /migration
  • Loading branch information
alikdell authored Apr 17, 2024
2 parents 84af917 + 08855c0 commit 7f82666
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run the formatter, linter, and vetter
uses: dell/common-github-actions/go-code-formatter-linter-vetter@main
with:
Expand All @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run the forbidden words scan
uses: dell/common-github-actions/code-sanitizer@main
with:
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run Go Security
uses: securego/gosec@master
with:
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run malware scan
uses: dell/common-github-actions/malware-scanner@main
with:
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: linters

on:
push:
branches: [main]
pull_request:
branches: ["**"]

permissions:
contents: read

jobs:
golangci-lint-common:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Checkout the code
uses: actions/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
working-directory: common
golangci-lint-migration:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Checkout the code
uses: actions/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
working-directory: migration
golangci-lint-podmon:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Checkout the code
uses: actions/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
working-directory: podmon
golangci-lint-replication:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Checkout the code
uses: actions/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
working-directory: replication
golangci-lint-volumeGroupSnapshot:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Checkout the code
uses: actions/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
working-directory: volumeGroupSnapshot

30 changes: 30 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
run:
timeout: 20m
issue-exit-code: 0 # we will change this later
tests: true
skip-dirs-use-default: true
modules-download-mode: readonly

issues:
max-issues-per-linter: 0
max-same-issues: 0
new: false

output:
print-linter-name: true
sort-results: true
uniq-by-line: false
print-issued-lines: true

linters:
disable-all: true
fast: false
enable:
# A stricter replacement for gofmt.
- gofumpt
# Inspects source code for security problems.
- gosec
# Check for correctness of programs.
- govet
# Drop-in replacement of golint.
- revive
2 changes: 1 addition & 1 deletion migration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22
require (
github.com/dell/dell-csi-extensions/common v1.3.1-0.20240225182105-97381002f223
google.golang.org/grpc v1.57.1
google.golang.org/protobuf v1.32.0
google.golang.org/protobuf v1.33.0
)

require (
Expand Down
8 changes: 2 additions & 6 deletions migration/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/dell/dell-csi-extensions/common v1.2.1-0.20231031131730-68f55c8c3ba2 h1:O3aFa6xHT+JzQW0kAXG0h3TRcdbGaEMrtLsUaqqjATM=
github.com/dell/dell-csi-extensions/common v1.2.1-0.20231031131730-68f55c8c3ba2/go.mod h1:RLDVq6tz2yVzsX804Daopj/JBB147uqH2NKx6O3G0vA=
github.com/dell/dell-csi-extensions/common v1.3.1-0.20240225182105-97381002f223 h1:TwtXvbp6nUc/+gFuviXlgporsDyck9S5yWp5FZkbdpE=
github.com/dell/dell-csi-extensions/common v1.3.1-0.20240225182105-97381002f223/go.mod h1:TEVaeIg7Yk1d1HorzFGiHyJhtaIPuSZc/gn1wZM0HhM=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
Expand All @@ -21,7 +19,5 @@ google.golang.org/grpc v1.57.1 h1:upNTNqv0ES+2ZOOqACwVtS3Il8M12/+Hz41RCPzAjQg=
google.golang.org/grpc v1.57.1/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=

0 comments on commit 7f82666

Please sign in to comment.