Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type:
Enhancement
PR Description:
This PR integrates Regal linting into the CI pipeline using the setup-regal GitHub Action. It also includes fixes for style violations from recent Regal rules and updates the Regal configuration to ignore some of the new rules. Additionally, the PR includes minor code style fixes in various Rego files.
PR Main Files Walkthrough:
files:
.github/workflows/pr-tests.yaml
: Added setup for Regal and a new job for Rego linting.rules/.regal/config.yaml
: Updated Regal configuration to ignore some rules and set a maximum rule length.rules/alert-rw-hostpath/raw.rego
: Minor style fixes and comments update.rules/CVE-2021-25742/raw.rego
: Minor style fixes and comments update.rules/exposed-critical-pods/raw.rego
: Added a Regal ignore directive for rule length.rules/CVE-2022-0185/raw.rego
: Minor style fixes and comments update.rules/exposed-rce-pods/raw.rego
: Added a Regal ignore directive for rule length.rules/rule-privileged-container/raw.rego
: Minor style fixes and comments update.rules/etcd-unique-ca/raw.rego
: Minor style fixes and comments update.rules/label-usage-for-resources/raw.rego
: Minor style fixes and comments update.User Description:
PR related to #515 for tests that make use of secrets.