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

✨ support querypack execution #944

Merged
merged 2 commits into from
Nov 9, 2023
Merged

✨ support querypack execution #944

merged 2 commits into from
Nov 9, 2023

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Nov 9, 2023

Requires: mondoohq/cnquery#2545 + updated go.mod.

cnspec scan -f ../cnquery/examples/os.mql.yaml

... now works as advertised:

Data queries:
services.where.list: [
  0: service name="sshd" running=false enabled=false type="systemd"
  1: service name="sshdgenkeys" running=false enabled=false type="systemd"
]
packages.where.list: [
  0: package name="lib32-libssh2" version="1.11.0-1"
  1: package name="libssh" version="0.10.5-1"
  2: package name="libssh2" version="1.11.0-1"
  3: package name="openssh" version="9.5p1-1"
  4: package name="sshfs" version="3.7.3-1"
]
...

Requires: mondoohq/cnquery#2545 + updated
`go.mod`.

```bash
cnspec scan -f ../cnquery/examples/os.mql.yaml
```

... now works as advertised:

```bash
Data queries:
services.where.list: [
  0: service name="sshd" running=false enabled=false type="systemd"
  1: service name="sshdgenkeys" running=false enabled=false type="systemd"
]
packages.where.list: [
  0: package name="lib32-libssh2" version="1.11.0-1"
  1: package name="libssh" version="0.10.5-1"
  2: package name="libssh2" version="1.11.0-1"
  3: package name="openssh" version="9.5p1-1"
  4: package name="sshfs" version="3.7.3-1"
]
...
```

Signed-off-by: Dominik Richter <[email protected]>
@arlimus
Copy link
Member Author

arlimus commented Nov 9, 2023

@preslavgerchev if you could please update the go.mod to have the referenced change from cnquery included, then it'll work. I'm working off of potato internet in the swamps right now, realizing how long a go mod tidy can take 🙈

@preslavgerchev preslavgerchev merged commit f66af37 into main Nov 9, 2023
9 checks passed
@preslavgerchev preslavgerchev deleted the dom/querypack branch November 9, 2023 17:04
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 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.

2 participants