Skip to content

Commit 870523d

Browse files
simar7nikpivkin
andauthored
chore(deps): Bump trivy-checks and pin OPA (aquasecurity#7427)
Signed-off-by: nikpivkin <[email protected]> Co-authored-by: nikpivkin <[email protected]>
1 parent da4ebfa commit 870523d

File tree

11 files changed

+39
-32
lines changed

11 files changed

+39
-32
lines changed

docs/docs/references/configuration/cli/trivy_config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ trivy config [flags] DIR
3131
-h, --help help for config
3232
--ignore-policy string specify the Rego file path to evaluate each vulnerability
3333
--ignorefile string specify .trivyignore file (default ".trivyignore")
34-
--include-deprecated-checks include deprecated checks
34+
--include-deprecated-checks include deprecated checks (default true)
3535
--include-non-failures include successes and exceptions, available with '--scanners misconfig'
3636
--k8s-version string specify k8s version to validate outdated api by it (example: 1.21.0)
3737
--misconfig-scanners strings comma-separated list of misconfig scanners to use for misconfiguration scanning (default [azure-arm,cloudformation,dockerfile,helm,kubernetes,terraform,terraformplan-json,terraformplan-snapshot])

docs/docs/references/configuration/cli/trivy_filesystem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ trivy filesystem [flags] PATH
5353
--ignore-unfixed display only fixed vulnerabilities
5454
--ignored-licenses strings specify a list of license to ignore
5555
--ignorefile string specify .trivyignore file (default ".trivyignore")
56-
--include-deprecated-checks include deprecated checks
56+
--include-deprecated-checks include deprecated checks (default true)
5757
--include-dev-deps include development dependencies in the report (supported: npm, yarn)
5858
--include-non-failures include successes and exceptions, available with '--scanners misconfig'
5959
--java-db-repository string OCI repository to retrieve trivy-java-db from (default "ghcr.io/aquasecurity/trivy-java-db:1")

docs/docs/references/configuration/cli/trivy_image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ trivy image [flags] IMAGE_NAME
7171
--ignorefile string specify .trivyignore file (default ".trivyignore")
7272
--image-config-scanners strings comma-separated list of what security issues to detect on container image configurations (misconfig,secret)
7373
--image-src strings image source(s) to use, in priority order (docker,containerd,podman,remote) (default [docker,containerd,podman,remote])
74-
--include-deprecated-checks include deprecated checks
74+
--include-deprecated-checks include deprecated checks (default true)
7575
--include-non-failures include successes and exceptions, available with '--scanners misconfig'
7676
--input string input file path instead of image name
7777
--java-db-repository string OCI repository to retrieve trivy-java-db from (default "ghcr.io/aquasecurity/trivy-java-db:1")

docs/docs/references/configuration/cli/trivy_kubernetes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ trivy kubernetes [flags] [CONTEXT]
6666
--ignore-unfixed display only fixed vulnerabilities
6767
--ignorefile string specify .trivyignore file (default ".trivyignore")
6868
--image-src strings image source(s) to use, in priority order (docker,containerd,podman,remote) (default [docker,containerd,podman,remote])
69-
--include-deprecated-checks include deprecated checks
69+
--include-deprecated-checks include deprecated checks (default true)
7070
--include-kinds strings indicate the kinds included in scanning (example: node)
7171
--include-namespaces strings indicate the namespaces included in scanning (example: kube-system)
7272
--include-non-failures include successes and exceptions, available with '--scanners misconfig'

docs/docs/references/configuration/cli/trivy_repository.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ trivy repository [flags] (REPO_PATH | REPO_URL)
5353
--ignore-unfixed display only fixed vulnerabilities
5454
--ignored-licenses strings specify a list of license to ignore
5555
--ignorefile string specify .trivyignore file (default ".trivyignore")
56-
--include-deprecated-checks include deprecated checks
56+
--include-deprecated-checks include deprecated checks (default true)
5757
--include-dev-deps include development dependencies in the report (supported: npm, yarn)
5858
--include-non-failures include successes and exceptions, available with '--scanners misconfig'
5959
--java-db-repository string OCI repository to retrieve trivy-java-db from (default "ghcr.io/aquasecurity/trivy-java-db:1")

docs/docs/references/configuration/cli/trivy_rootfs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ trivy rootfs [flags] ROOTDIR
5656
--ignore-unfixed display only fixed vulnerabilities
5757
--ignored-licenses strings specify a list of license to ignore
5858
--ignorefile string specify .trivyignore file (default ".trivyignore")
59-
--include-deprecated-checks include deprecated checks
59+
--include-deprecated-checks include deprecated checks (default true)
6060
--include-non-failures include successes and exceptions, available with '--scanners misconfig'
6161
--java-db-repository string OCI repository to retrieve trivy-java-db from (default "ghcr.io/aquasecurity/trivy-java-db:1")
6262
--license-confidence-level float specify license classifier's confidence level (default 0.9)

docs/docs/references/configuration/config-file.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ rego:
477477
data: []
478478

479479
# Same as '--include-deprecated-checks'
480-
include-deprecated-checks: false
480+
include-deprecated-checks: true
481481

482482
# Same as '--check-namespaces'
483483
namespaces: []

go.mod

+11-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/aquasecurity/table v1.8.0
2626
github.com/aquasecurity/testdocker v0.0.0-20240730042311-4642e94c7fc8
2727
github.com/aquasecurity/tml v0.6.1
28-
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830035934-7761a83288cd
28+
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830230553-53ddbbade784
2929
github.com/aquasecurity/trivy-db v0.0.0-20240718084044-d23a6ca8ba04
3030
github.com/aquasecurity/trivy-java-db v0.0.0-20240109071736-184bd7481d48
3131
github.com/aquasecurity/trivy-kubernetes v0.6.7-0.20240707095038-0300bc49b68b
@@ -41,7 +41,7 @@ require (
4141
github.com/bmatcuk/doublestar/v4 v4.6.1
4242
github.com/cenkalti/backoff/v4 v4.3.0
4343
github.com/cheggaaa/pb/v3 v3.1.5
44-
github.com/containerd/containerd v1.7.20
44+
github.com/containerd/containerd v1.7.21
4545
github.com/csaf-poc/csaf_distribution/v3 v3.0.0
4646
github.com/docker/docker v27.1.1+incompatible
4747
github.com/docker/go-connections v0.5.0
@@ -301,7 +301,8 @@ require (
301301
github.com/moby/sys/mountinfo v0.7.1 // indirect
302302
github.com/moby/sys/sequential v0.5.0 // indirect
303303
github.com/moby/sys/signal v0.7.0 // indirect
304-
github.com/moby/sys/user v0.1.0 // indirect
304+
github.com/moby/sys/user v0.3.0 // indirect
305+
github.com/moby/sys/userns v0.1.0 // indirect
305306
github.com/moby/term v0.5.0 // indirect
306307
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
307308
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -322,9 +323,9 @@ require (
322323
github.com/pkg/errors v0.9.1 // indirect
323324
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
324325
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
325-
github.com/prometheus/client_golang v1.19.1 // indirect
326+
github.com/prometheus/client_golang v1.20.1 // indirect
326327
github.com/prometheus/client_model v0.6.1 // indirect
327-
github.com/prometheus/common v0.51.1 // indirect
328+
github.com/prometheus/common v0.55.0 // indirect
328329
github.com/prometheus/procfs v0.15.1 // indirect
329330
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
330331
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
@@ -377,10 +378,10 @@ require (
377378
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
378379
go.uber.org/multierr v1.11.0 // indirect
379380
go.uber.org/zap v1.27.0 // indirect
380-
golang.org/x/oauth2 v0.20.0 // indirect
381+
golang.org/x/oauth2 v0.21.0 // indirect
381382
golang.org/x/sys v0.23.0 // indirect
382383
golang.org/x/telemetry v0.0.0-20240522233618-39ace7a40ae7 // indirect
383-
golang.org/x/time v0.5.0 // indirect
384+
golang.org/x/time v0.6.0 // indirect
384385
golang.org/x/tools v0.23.0 // indirect
385386
google.golang.org/api v0.172.0 // indirect
386387
google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect
@@ -418,3 +419,6 @@ require (
418419

419420
// cf. https://github.com/openvex/discovery/pull/40
420421
replace github.com/openvex/discovery => github.com/knqyf263/discovery v0.1.1-0.20240726113521-97873005fd03
422+
423+
// see https://github.com/open-policy-agent/opa/pull/6970
424+
replace github.com/open-policy-agent/opa => github.com/nikpivkin/opa v0.0.0-20240829080621-16999fcb5464

go.sum

+18-16
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ github.com/aquasecurity/testdocker v0.0.0-20240730042311-4642e94c7fc8 h1:b43UVqY
348348
github.com/aquasecurity/testdocker v0.0.0-20240730042311-4642e94c7fc8/go.mod h1:wXA9k3uuaxY3yu7gxrxZDPo/04FEMJtwyecdAlYrEIo=
349349
github.com/aquasecurity/tml v0.6.1 h1:y2ZlGSfrhnn7t4ZJ/0rotuH+v5Jgv6BDDO5jB6A9gwo=
350350
github.com/aquasecurity/tml v0.6.1/go.mod h1:OnYMWY5lvI9ejU7yH9LCberWaaTBW7hBFsITiIMY2yY=
351-
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830035934-7761a83288cd h1:/6sPLCU4JICPPYAmY2iUsLGpgYBXUH6M/0fy57AhNWY=
352-
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830035934-7761a83288cd/go.mod h1:zLBeXaTJkAvPZqKiRACAsP49ZywCEXFEjXMLa8kmc8Q=
351+
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830230553-53ddbbade784 h1:1rvPiCK8uQd3sarOuZ60nwksHpxsNdrvptz4eDW/V14=
352+
github.com/aquasecurity/trivy-checks v0.13.1-0.20240830230553-53ddbbade784/go.mod h1:Ralz7PWmR3LirHlXxVtUXc+7CFmWE82jbLk7+TPvV/0=
353353
github.com/aquasecurity/trivy-db v0.0.0-20240718084044-d23a6ca8ba04 h1:6/T8sFdNVG/AwOGoK6X55h7hF7LYqK8bsuPz8iEz8jM=
354354
github.com/aquasecurity/trivy-db v0.0.0-20240718084044-d23a6ca8ba04/go.mod h1:0T6oy2t1Iedt+yi3Ml5cpOYp5FZT4MI1/mx+3p+PIs8=
355355
github.com/aquasecurity/trivy-java-db v0.0.0-20240109071736-184bd7481d48 h1:JVgBIuIYbwG+ekC5lUHUpGJboPYiCcxiz06RCtz8neI=
@@ -479,8 +479,8 @@ github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be h1:J5BL
479479
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be/go.mod h1:mk5IQ+Y0ZeO87b858TlA645sVcEcbiX6YqP98kt+7+w=
480480
github.com/containerd/cgroups/v3 v3.0.2 h1:f5WFqIVSgo5IZmtTT3qVBo6TzI1ON6sycSBKkymb9L0=
481481
github.com/containerd/cgroups/v3 v3.0.2/go.mod h1:JUgITrzdFqp42uI2ryGA+ge0ap/nxzYgkGmIcetmErE=
482-
github.com/containerd/containerd v1.7.20 h1:Sl6jQYk3TRavaU83h66QMbI2Nqg9Jm6qzwX57Vsn1SQ=
483-
github.com/containerd/containerd v1.7.20/go.mod h1:52GsS5CwquuqPuLncsXwG0t2CiUce+KsNHJZQJvAgR0=
482+
github.com/containerd/containerd v1.7.21 h1:USGXRK1eOC/SX0L195YgxTHb0a00anxajOzgfN0qrCA=
483+
github.com/containerd/containerd v1.7.21/go.mod h1:e3Jz1rYRUZ2Lt51YrH9Rz0zPyJBOlSvB3ghr2jbVD8g=
484484
github.com/containerd/containerd/api v1.7.19 h1:VWbJL+8Ap4Ju2mx9c9qS1uFSB1OVYr5JJrW2yT5vFoA=
485485
github.com/containerd/containerd/api v1.7.19/go.mod h1:fwGavl3LNwAV5ilJ0sbrABL44AQxmNjDRcwheXDb6Ig=
486486
github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8=
@@ -1096,8 +1096,10 @@ github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5
10961096
github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo=
10971097
github.com/moby/sys/signal v0.7.0 h1:25RW3d5TnQEoKvRbEKUGay6DCQ46IxAVTT9CUMgmsSI=
10981098
github.com/moby/sys/signal v0.7.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg=
1099-
github.com/moby/sys/user v0.1.0 h1:WmZ93f5Ux6het5iituh9x2zAG7NFY9Aqi49jjE1PaQg=
1100-
github.com/moby/sys/user v0.1.0/go.mod h1:fKJhFOnsCN6xZ5gSfbM6zaHGgDJMrqt9/reuj4T7MmU=
1099+
github.com/moby/sys/user v0.3.0 h1:9ni5DlcW5an3SvRSx4MouotOygvzaXbaSrc/wGDFWPo=
1100+
github.com/moby/sys/user v0.3.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs=
1101+
github.com/moby/sys/userns v0.1.0 h1:tVLXkFOxVu9A64/yh59slHVv9ahO9UIev4JZusOLG/g=
1102+
github.com/moby/sys/userns v0.1.0/go.mod h1:IHUYgu/kao6N8YZlp9Cf444ySSvCmDlmzUcYfDHOl28=
11011103
github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0=
11021104
github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
11031105
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -1120,6 +1122,8 @@ github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J
11201122
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
11211123
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
11221124
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
1125+
github.com/nikpivkin/opa v0.0.0-20240829080621-16999fcb5464 h1:jhZ8nLVxOAslgzmPdKTyctfDJkMfRgksCypFriHzf4E=
1126+
github.com/nikpivkin/opa v0.0.0-20240829080621-16999fcb5464/go.mod h1:cvSIxY0dexL39hOPqXSZKdBYFNx2Rv8Fu5n3MmTjqtE=
11231127
github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 h1:Up6+btDp321ZG5/zdSLo48H9Iaq0UQGthrhWC6pCxzE=
11241128
github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481/go.mod h1:yKZQO8QE2bHlgozqWDiRVqTFlLQSj30K/6SAK8EeYFw=
11251129
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
@@ -1143,8 +1147,6 @@ github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAl
11431147
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
11441148
github.com/onsi/gomega v1.31.0 h1:54UJxxj6cPInHS3a35wm6BK/F9nHYueZ1NVujHDrnXE=
11451149
github.com/onsi/gomega v1.31.0/go.mod h1:DW9aCi7U6Yi40wNVAvT6kzFnEVEI5n3DloYBiKiT6zk=
1146-
github.com/open-policy-agent/opa v0.67.1 h1:rzy26J6g1X+CKknAcx0Vfbt41KqjuSzx4E0A8DAZf3E=
1147-
github.com/open-policy-agent/opa v0.67.1/go.mod h1:aqKlHc8E2VAAylYE9x09zJYr/fYzGX+JKne89UGqFzk=
11481150
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
11491151
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
11501152
github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug=
@@ -1190,17 +1192,17 @@ github.com/poy/onpar v1.1.2/go.mod h1:6X8FLNoxyr9kkmnlqpK6LSoiOtrO6MICtWwEuWkLjz
11901192
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
11911193
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
11921194
github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g=
1193-
github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE=
1194-
github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho=
1195+
github.com/prometheus/client_golang v1.20.1 h1:IMJXHOD6eARkQpxo8KkhgEVFlBNm+nkrFUyGlIu7Na8=
1196+
github.com/prometheus/client_golang v1.20.1/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
11951197
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
11961198
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
11971199
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
11981200
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
11991201
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
12001202
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
12011203
github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc=
1202-
github.com/prometheus/common v0.51.1 h1:eIjN50Bwglz6a/c3hAgSMcofL3nD+nFQkV6Dd4DsQCw=
1203-
github.com/prometheus/common v0.51.1/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q=
1204+
github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc=
1205+
github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8=
12041206
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
12051207
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
12061208
github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
@@ -1605,8 +1607,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri
16051607
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
16061608
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
16071609
golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A=
1608-
golang.org/x/oauth2 v0.20.0 h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo=
1609-
golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
1610+
golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
1611+
golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
16101612
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
16111613
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
16121614
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -1751,8 +1753,8 @@ golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
17511753
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
17521754
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
17531755
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
1754-
golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
1755-
golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
1756+
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
1757+
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
17561758
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
17571759
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
17581760
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=

pkg/flag/rego_flags.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var (
1111
Name: "include-deprecated-checks",
1212
ConfigName: "rego.include-deprecated-checks",
1313
Usage: "include deprecated checks",
14+
Default: true,
1415
}
1516
SkipCheckUpdateFlag = Flag[bool]{
1617
Name: "skip-check-update",

pkg/iac/scanners/cloudformation/scanner.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ type Scanner struct {
6464
includeDeprecatedChecks bool
6565
}
6666

67-
func (s *Scanner) SetIncludeDeprecatedChecks(bool) {
68-
s.includeDeprecatedChecks = true
67+
func (s *Scanner) SetIncludeDeprecatedChecks(b bool) {
68+
s.includeDeprecatedChecks = b
6969
}
7070

7171
func (s *Scanner) SetCustomSchemas(map[string][]byte) {}

0 commit comments

Comments
 (0)