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

⭐ print file context to CLI #5210

Merged
merged 1 commit into from
Feb 13, 2025
Merged

⭐ print file context to CLI #5210

merged 1 commit into from
Feb 13, 2025

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Feb 12, 2025

Specialized printer for file context for resources that support it:

sshd.config.blocks: [
  0: sshd.config.matchBlock criteria=""
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:1-172
       1:  # #
       2:  # Ansible managed
     ...
     171:  RevokedKeys /etc/ssh/revoked_keys
     172:

  1: sshd.config.matchBlock criteria="Group sftp-users"
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:173-177
     173:  Match Group sftp-users
     174:         X11Forwarding no
     175:         PermitRootLogin no
     176:         AllowTCPForwarding yes
     177:

  2: sshd.config.matchBlock criteria="User myservice"
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:178-181
     178:  Match User myservice
     179:
     180:
]

Copy link
Contributor

github-actions bot commented Feb 12, 2025

Test Results

3 335 tests  +1   3 331 ✅ +1   1m 54s ⏱️ +10s
  385 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit 797be62. ± Comparison against base commit 7c015ee.

♻️ This comment has been updated with latest results.

@arlimus arlimus force-pushed the dom/context-printing branch from a9492d6 to 5e5f3bd Compare February 13, 2025 17:42
Specialized printer for file context for resources that support it:

```
sshd.config.blocks: [
  0: sshd.config.matchBlock criteria=""
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:1-172
       1:  # #
       2:  # Ansible managed
     ...
     171:  RevokedKeys /etc/ssh/revoked_keys
     172:

  1: sshd.config.matchBlock criteria="Group sftp-users"
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:173-177
     173:  Match Group sftp-users
     174:         X11Forwarding no
     175:         PermitRootLogin no
     176:         AllowTCPForwarding yes
     177:

  2: sshd.config.matchBlock criteria="User myservice"
     in /pub/go/src/go.mondoo.com/cnquery/sshd_config:178-181
     178:  Match User myservice
     179:
     180:
]
```
@arlimus arlimus force-pushed the dom/context-printing branch from 5e5f3bd to 797be62 Compare February 13, 2025 19:18
@arlimus arlimus marked this pull request as ready for review February 13, 2025 22:13
@chris-rock chris-rock merged commit 097be40 into main Feb 13, 2025
17 checks passed
@chris-rock chris-rock deleted the dom/context-printing branch February 13, 2025 22:18
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2025
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