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

🧹 fix asset filter of the example policy #838

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

atomic111
Copy link
Member

this fix the cnspec lint run on the example policy

the lint run of the example policy produce a error

cnspec bundle lint example-policy.mql.yaml                                                                    x1 16h27m main[bf56f98]
→ lint policy bundle file=example-policy.mql.yaml
  RULE ID               LEVEL  FILE                     LINE  MESSAGE
  bundle-compile-error  error  example-policy.mql.yaml  1     could not compile
                                                              policy bundle:failed
                                                              to validate policy:
                                                              failed to compile query
                                                              'platform.family.contains(_
                                                              == 'unix')': cannot find field
                                                              'family' in platform
FTL invalid policy bundle

@atomic111 atomic111 requested a review from tas50 October 14, 2023 06:18
@atomic111 atomic111 force-pushed the patrick/fix-example-policy branch from 3d89152 to 7243f07 Compare October 14, 2023 06:20
Copy link
Contributor

@scottford-io scottford-io left a comment

Choose a reason for hiding this comment

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

Thanks @atomic111 🙌

@scottford-io scottford-io merged commit 181d628 into main Oct 15, 2023
4 checks passed
@scottford-io scottford-io deleted the patrick/fix-example-policy branch October 15, 2023 00:16
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants