forked from dexidp/dex
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): resolve Trivy install/dependency and Gosec HIGH-severity CI failures #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6ccf5cc
fix(ci): replace apt-based trivy install with official trivy-action
mridulgain b69f92b
fix(gosec): suppress false-positive and accepted-risk HIGH findings
mridulgain 38538f2
fix(deps): bump vulnerable dependencies flagged by Trivy scan
mridulgain 2760046
fix(lint): migrate golangci-lint config to v2, bump tool to v2.12.2
mridulgain 525a2d3
fix(lint): pin golangci-lint to v2.11.0, v2.12.2's release asset is b…
mridulgain 5fdab80
Merge pull request #74 from platform9/mg/fix-golangci-lint-v2-migration
mridulgain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,97 +1,61 @@ | ||
| run: | ||
| timeout: 4m | ||
|
|
||
| linters-settings: | ||
| version: "2" | ||
| linters: | ||
| default: none | ||
| enable: | ||
| - depguard | ||
| - dogsled | ||
| - exhaustive | ||
| - gochecknoinits | ||
| - gocritic | ||
| - goprintffuncname | ||
| - govet | ||
| - ineffassign | ||
| - misspell | ||
| - nakedret | ||
| - nolintlint | ||
| - prealloc | ||
| - staticcheck | ||
| - unconvert | ||
| - unused | ||
| - whitespace | ||
| settings: | ||
| depguard: | ||
| rules: | ||
| deprecated: | ||
| deny: | ||
| - pkg: "io/ioutil" | ||
| desc: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead." | ||
| rules: | ||
| deprecated: | ||
| deny: | ||
| - pkg: io/ioutil | ||
| desc: The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead. | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| paths: | ||
| - storage/ent/db | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - gci | ||
| - gofmt | ||
| - gofumpt | ||
| - goimports | ||
| settings: | ||
| gci: | ||
| sections: | ||
| - standard | ||
| - default | ||
| - prefix(github.com/dexidp/dex) | ||
| sections: | ||
| - standard | ||
| - default | ||
| - prefix(github.com/dexidp/dex) | ||
| goimports: | ||
| local-prefixes: github.com/dexidp/dex | ||
|
|
||
| linters: | ||
| disable-all: true | ||
| enable: | ||
| - depguard | ||
| - dogsled | ||
| - exhaustive | ||
| - gci | ||
| - gochecknoinits | ||
| - gocritic | ||
| - gofmt | ||
| - gofumpt | ||
| - goimports | ||
| - goprintffuncname | ||
| - gosimple | ||
| - govet | ||
| - ineffassign | ||
| - misspell | ||
| - nakedret | ||
| - nolintlint | ||
| - prealloc | ||
| # - revive | ||
| # - sqlclosecheck | ||
| - staticcheck | ||
| - stylecheck | ||
| - unconvert | ||
| - unused | ||
| - whitespace | ||
|
|
||
| # Disable temporarily until everything works with Go 1.20 | ||
| # - bodyclose | ||
| # - rowserrcheck | ||
| # - tparallel | ||
| # - unparam | ||
|
|
||
| # Disable temporarily until everything works with Go 1.18 | ||
| - typecheck | ||
|
|
||
| # Disable temporarily until the following issue is resolved: https://github.com/golangci/golangci-lint/issues/3086 | ||
| # - sqlclosecheck | ||
|
|
||
| # TODO: fix linter errors before enabling | ||
| # - exhaustivestruct | ||
| # - gochecknoglobals | ||
| # - errorlint | ||
| # - gocognit | ||
| # - godot | ||
| # - nlreturn | ||
| # - noctx | ||
| # - revive | ||
| # - wrapcheck | ||
|
|
||
| # TODO: fix linter errors before enabling (from original config) | ||
| # - dupl | ||
| # - errcheck | ||
| # - goconst | ||
| # - gocyclo | ||
| # - gosec | ||
| # - lll | ||
| # - scopelint | ||
|
|
||
| # unused | ||
| # - goheader | ||
| # - gomodguard | ||
|
|
||
| # don't enable: | ||
| # - asciicheck | ||
| # - funlen | ||
| # - godox | ||
| # - goerr113 | ||
| # - gomnd | ||
| # - interfacer | ||
| # - maligned | ||
| # - nestif | ||
| # - testpackage | ||
| # - wsl | ||
|
|
||
| issues: | ||
| exclude-dirs: | ||
| - storage/ent/db # generated ent code | ||
| local-prefixes: | ||
| - github.com/dexidp/dex | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - storage/ent/db | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| module github.com/dexidp/dex/api/v2 | ||
|
|
||
| go 1.24.0 | ||
| go 1.25.0 | ||
|
|
||
| require ( | ||
| google.golang.org/grpc v1.73.0 | ||
| google.golang.org/protobuf v1.36.6 | ||
| google.golang.org/grpc v1.83.0 | ||
| google.golang.org/protobuf v1.36.11 | ||
|
mridulgain marked this conversation as resolved.
|
||
| ) | ||
|
|
||
| require ( | ||
| golang.org/x/net v0.38.0 // indirect | ||
| golang.org/x/sys v0.31.0 // indirect | ||
| golang.org/x/text v0.23.0 // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect | ||
| golang.org/x/net v0.58.0 // indirect | ||
| golang.org/x/sys v0.47.0 // indirect | ||
| golang.org/x/text v0.41.0 // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect | ||
| ) | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.