Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarifying a dir path is required for custom policies #4716

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

AnaisUrlichs
Copy link
Contributor

Making it clear that people have to use the dir path instead of the specific file

#4668

Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com>
Copy link
Collaborator

@knqyf263 knqyf263 left a comment

Choose a reason for hiding this comment

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

We can revert it after #4689 completes.

@knqyf263 knqyf263 added this pull request to the merge queue Jun 26, 2023
Merged via the queue into aquasecurity:main with commit 8a1aa44 Jun 26, 2023
@simar7
Copy link
Member

simar7 commented Jun 27, 2023

FYI this is documented in the CLI flags but doesn't hurt to do so as well in the markdowns.

➜  trivy git:(main) ✗ trivy config --help | grep policy
      --reset-policy-bundle       remove policy bundle
      --config-policy strings       specify paths to the Rego policy files directory, applying config files
      --policy-namespaces strings   Rego namespaces
      --skip-policy-update          skip fetching rego policy updates
➜  trivy git:(main) ✗ trivy fs --help | grep policy
      --ignore-policy string   specify the Rego file path to evaluate each vulnerability
      --reset-policy-bundle       remove policy bundle
      --config-policy strings       specify paths to the Rego policy files directory, applying config files
      --policy-namespaces strings   Rego namespaces
      --skip-policy-update          skip fetching rego policy updates

nikpivkin added a commit to nikpivkin/trivy that referenced this pull request Jul 10, 2023
github-merge-queue bot pushed a commit that referenced this pull request Jul 13, 2023
#4777)

* feat(misconf): enable --policy flag to accept directory and files both

* fix test

* Revert "clarifying a dir path is required for custom policies (#4716)"

This reverts commit 8a1aa44.

* update doc

* update the flag description
AnaisUrlichs added a commit to AnaisUrlichs/trivy that referenced this pull request Aug 10, 2023
)

Signed-off-by: AnaisUrlichs <urlichsanais@gmail.com>
AnaisUrlichs pushed a commit to AnaisUrlichs/trivy that referenced this pull request Aug 10, 2023
aquasecurity#4777)

* feat(misconf): enable --policy flag to accept directory and files both

* fix test

* Revert "clarifying a dir path is required for custom policies (aquasecurity#4716)"

This reverts commit 8a1aa44.

* update doc

* update the flag description
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.

3 participants