Skip to content

Conversation

Piskoo
Copy link
Collaborator

@Piskoo Piskoo commented Aug 7, 2025

This PR makes some changes to how output from policy devel tools is displayed:

  • lint works with the output flag while maintaining exit errors
  • indentation in yaml policy files uses 2 spaces after it was formated with --format flag
  • eval violations returned from regal are now split correctly and displayed one by one
  • eval violation concerning file formatting points to --format flag instead of opa fmt

Closes #2283

Piskoo added 4 commits August 6, 2025 15:51
…ssing

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo requested review from javirln, jiparis and migmartri August 7, 2025 08:55
@Piskoo Piskoo marked this pull request as ready for review August 7, 2025 08:55
@migmartri
Copy link
Member

Is this solving by any chance #2320 ?

Copy link
Member

@jiparis jiparis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, please check my comments.

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Piskoo added 2 commits August 11, 2025 09:31
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@jiparis jiparis self-requested a review August 11, 2025 09:14
Piskoo added 3 commits August 11, 2025 17:06
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@jiparis
Copy link
Member

jiparis commented Aug 11, 2025

Thanks @Piskoo I've been testing the latest changes and everything looks good now. Much cleaner, thanks!!

@migmartri migmartri merged commit ecce569 into chainloop-dev:main Aug 11, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(policy): update output handling for lint and eval

3 participants