Skip to content

Confusing linting behavior #2310

Description

@migmartri

pointing to a specific new policy says

chainloop policy devel lint -p ./chainloop-policy.yaml
INF policy is valid!

while the policy in fact is invalid if I don't explicitly pass the policy

chainloop policy devel lint
Found 1 issues:
  1. /tmp/test-policy/chainloop-policy.rego:1: File should be formatted with `opa fmt`
ERR policy validation failed with 1 issues

To me, both commands should return the same, there is only one policy in my directory.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions