File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
bundle.tar.gz
2
2
opa
3
+ schemas
3
4
4
5
.idea
5
6
.vscode
Original file line number Diff line number Diff line change 17
17
test-integration :
18
18
go test -v -timeout 5m -tags=integration ./integration/...
19
19
20
+ .PHONY : download-schemas
21
+ download-schemas :
22
+ @schemas_path=schemas ; \
23
+ base_url=https://raw.githubusercontent.com/aquasecurity/trivy/main/pkg/iac/rego/schemas ; \
24
+ mkdir -p $$ schemas_path ; \
25
+ for file in cloud.json dockerfile.json kubernetes.json ; do \
26
+ wget -q -O $$ schemas_path/$$ file $$ base_url/$$ file ; \
27
+ done
28
+
20
29
.PHONY : rego
21
30
rego : fmt-rego check-rego lint-rego test-rego docs
22
31
@@ -29,8 +38,8 @@ test-rego:
29
38
go run ./cmd/opa test --explain=fails lib/ checks/ examples/ --ignore ' *.yaml'
30
39
31
40
.PHONY : check-rego
32
- check-rego :
33
- @go run ./cmd/opa check lib checks --v0-v1 --strict
41
+ check-rego : download-schemas
42
+ @go run ./cmd/opa check lib checks --v0-v1 --strict -s schemas
34
43
35
44
.PHONY : lint-rego
36
45
lint-rego : check-rego
Original file line number Diff line number Diff line change 8
8
# Ensure that you use a supported runtime version, such as Python 3.x,
9
9
# to maintain the security and reliability of your serverless application.
10
10
# scope: package
11
- # schemas:
12
- # - input: schema["yaml"]
13
11
# related_resources:
14
12
# - https://www.python.org/doc/sunset-python-2/
15
13
# custom:
Original file line number Diff line number Diff line change 6
6
#
7
7
# Ensure that the desired capacity for Auto Scaling Groups is set to a reasonable value, typically within limits defined by your organization.
8
8
# scope: package
9
- # schemas:
10
- # - input: schema["json"]
11
9
# related_resources:
12
10
# - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group
13
11
# custom:
You can’t perform that action at this time.
0 commit comments