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

Multiple --product ignored since v0.2.5 #215

Closed
felipecruz91 opened this issue Jul 8, 2024 · 1 comment · Fixed by #216
Closed

Multiple --product ignored since v0.2.5 #215

felipecruz91 opened this issue Jul 8, 2024 · 1 comment · Fixed by #216

Comments

@felipecruz91
Copy link
Contributor

Since v0.2.5 multiple products specified in the --product flag are not respected, only the last entry is included in the generated document.

Input:

./vexctl create \
  --product="pkg:apk/wolfi/[email protected]?arch=x86_64" \
  --product="pkg:apk/wolfi/[email protected]?arch=armv7" \
  --vuln="CVE-2023-12345" \
  --status="fixed"

v0.2.3 (working version)

The document contains both products as expected.

{
  "@context": "https://openvex.dev/ns",
  "@id": "https://openvex.dev/docs/public/vex-2613e8dc7264f6789755f29d2af472a62d062bfd2ca490daf79f80413a88d919",
  "author": "Unknown Author",
  "role": "Document Creator",
  "timestamp": "2024-07-08T16:08:40.017534+02:00",
  "version": "1",
  "statements": [
    {
      "vulnerability": "CVE-2023-12345",
      "products": [
        "pkg:apk/wolfi/[email protected]?arch=armv7",
        "pkg:apk/wolfi/[email protected]?arch=x86_64"
      ],
      "status": "fixed"
    }
  ]
}

v0.2.5 or later.

The document contains only one product which is the last one specified in the --product flag.

{
  "@context": "https://openvex.dev/ns/v0.2.0",
  "@id": "https://openvex.dev/docs/public/vex-efaf99907d8597748979c0dec618c1f55fc247d11b43d5f0be8c96a68f7dda9f",
  "author": "Unknown Author",
  "timestamp": "2024-07-08T16:10:17.192584+02:00",
  "version": 1,
  "statements": [
    {
      "vulnerability": {
        "name": "CVE-2023-12345"
      },
      "timestamp": "2024-07-08T16:10:17.192585+02:00",
      "products": [
        {
          "@id": "pkg:apk/wolfi/[email protected]?arch=armv7"
        }
      ],
      "status": "fixed"
    }
  ]
}
@felipecruz91
Copy link
Contributor Author

@puerco Are there any plans on cutting a new release including this fix any time soon?

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 a pull request may close this issue.

1 participant