-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/google.golang.org/grpc…
…-1.56.3
- Loading branch information
Showing
13 changed files
with
228 additions
and
201 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
rules: | ||
idiomatic: | ||
no-defined-entrypoint: | ||
# OK to ignore for libraries | ||
level: ignore | ||
style: | ||
file-length: | ||
# Override default of 500 as one file has 515 lines | ||
max-file-length: 550 | ||
line-length: | ||
# Violations here mostly from metadata annotation values. | ||
# These could be fixed by using |> and newlines, but we'll | ||
# ignore this for now. | ||
level: ignore | ||
opa-fmt: | ||
# Would mostly changes spaces -> tabs. Safe to ignore. | ||
level: ignore | ||
prefer-snake-case: | ||
# Only a few violations here, so this would be easy to fix. | ||
level: ignore | ||
prefer-some-in-iteration: | ||
# This is mostly a style preference, so safe to ignore. | ||
level: ignore |
This file contains 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 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,14 +1,12 @@ | ||
package common.webhooks | ||
|
||
has_key(x, k) { | ||
_ = x[k] | ||
} | ||
import future.keywords.in | ||
|
||
ssl_enabled(hook) { | ||
has_key(hook.config, "insecure_ssl") | ||
"insecure_ssl" in object.keys(hook.config) | ||
hook.config.insecure_ssl == "0" | ||
} | ||
|
||
has_secret(hook) { | ||
has_key(hook.config, "secret") | ||
} | ||
"secret" in object.keys(hook.config) | ||
} |
This file contains 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 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 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.