Title: Failed to parse trivy-k8s output Unexpected attribute 'Packages' on resource-item · Issue #2689 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: Failed to parse trivy-k8s output Unexpected attribute 'Packages' on resource-item · Issue #2689 · secureCodeBox/secureCodeBox
X Title: Failed to parse trivy-k8s output Unexpected attribute 'Packages' on resource-item · Issue #2689 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report Describe the bug After successful trivy k8s scan parser fails. Steps To Reproduce deploy trivy scan type from docs helm upgrade --install trivy oci://ghcr.io/securecodebox/helm/trivy --version 4.9.0 Run trivy-k8s scan scbctl...
Open Graph Description: 🐞 Bug report Describe the bug After successful trivy k8s scan parser fails. Steps To Reproduce deploy trivy scan type from docs helm upgrade --install trivy oci://ghcr.io/securecodebox/helm/trivy -...
X Description: 🐞 Bug report Describe the bug After successful trivy k8s scan parser fails. Steps To Reproduce deploy trivy scan type from docs helm upgrade --install trivy oci://ghcr.io/securecodebox/helm/trivy -...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/2689
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to parse trivy-k8s output Unexpected attribute 'Packages' on resource-item","articleBody":"## 🐞 Bug report\r\n\r\n### Describe the bug\r\nAfter successful trivy k8s scan parser fails.\r\n\r\n### Steps To Reproduce\r\ndeploy trivy scan type from docs\r\n```shell\r\nhelm upgrade --install trivy oci://ghcr.io/securecodebox/helm/trivy --version 4.9.0\r\n```\r\nRun trivy-k8s scan\r\n```shell\r\nscbctl scan trivy-k8s -- --db-repository my-registry/aquasecurity/trivy-db --java-db-repository my-registry/aquasecurity/trivy-java-db --checks-bundle-repository my-registry/aquasecurity/trivy-checks --debug --include-namespaces infra-securecodebox --severity CRITICAL \r\n```\r\n### Expected behavior\r\n```\r\nScan completed and result get parsed.\r\n```\r\n\r\n### System (please complete the following information):\r\n\u003c!--\r\n - secureCodeBox 4.9.0\r\n - OS: [e.g. iOS]\r\n - Kubernetes Version [command: `kubectl version`]\r\n - Docker Version [command: `docker -v`]\r\n - Browser [e.g. chrome, safari, firefox,...]\r\n--\u003e\r\n\r\nsecureCodeBox: 4.9.0\r\n```shell\r\n$ kubectl version\r\nClient Version: v1.29.2\r\nKustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3\r\nServer Version: v1.30.4\r\n```\r\n### Screenshots / Logs\r\nLogs from trivy parser\r\n\r\n```\r\nStarting Parser\r\n(node:1) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\nFetching result file\r\nFetched result file\r\nParser failed with error:\r\nError: Unexpected attribute 'Packages' on resource-item\r\n at parseK8sScanResultResource (/home/app/parser-wrapper/parser/parser.js:136:14)\r\n at /home/app/parser-wrapper/parser/parser.js:117:70\r\n at Array.flatMap (\u003canonymous\u003e)\r\n at /home/app/parser-wrapper/parser/parser.js:117:44\r\n at new Promise (\u003canonymous\u003e)\r\n at parseK8sScanResults (/home/app/parser-wrapper/parser/parser.js:104:10)\r\n at parse (/home/app/parser-wrapper/parser/parser.js:22:18)\r\n at main (/home/app/parser-wrapper/parser-wrapper.js:154:22)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\r\n```\r\n\r\n","author":{"url":"https://github.com/paraddise","@type":"Person","name":"paraddise"},"datePublished":"2024-10-01T12:05:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2689/secureCodeBox/issues/2689"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:51284792-65be-b7e1-3c57-6d91f02b5980 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC4E:1AEC3E:2AF9169:36FFB2F:699032BC |
| html-safe-nonce | a0387a797465b207ee8e55688b37f872c33cec16a9f7c1efcdf07991d132441b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzRFOjFBRUMzRToyQUY5MTY5OjM2RkZCMkY6Njk5MDMyQkMiLCJ2aXNpdG9yX2lkIjoiNzM0MDY1NDY4MDU5NDMxNjEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 018e2f526573dec917d240f059e12f626c069e2d0dad0cb79615f8f93854b71e |
| hovercard-subject-tag | issue:2559026796 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/2689/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f140536847b97bbee5159e0c5d3cc983584c1bfaa80f7feb180bd615312d8671/secureCodeBox/secureCodeBox/issues/2689 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f140536847b97bbee5159e0c5d3cc983584c1bfaa80f7feb180bd615312d8671/secureCodeBox/secureCodeBox/issues/2689 |
| og:image:alt | 🐞 Bug report Describe the bug After successful trivy k8s scan parser fails. Steps To Reproduce deploy trivy scan type from docs helm upgrade --install trivy oci://ghcr.io/securecodebox/helm/trivy -... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paraddise |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width