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

Vulns attestation "result" struct discrepancy #391

Open
lumjjb opened this issue Oct 11, 2024 · 0 comments
Open

Vulns attestation "result" struct discrepancy #391

lumjjb opened this issue Oct 11, 2024 · 0 comments

Comments

@lumjjb
Copy link

lumjjb commented Oct 11, 2024

There may be a discrepancy with the intoto vuln predicate (if i interpret it right).

It looks like the spec specifies scanner.result.[*].vulnerability, optional object indicates a nested vulnerability object, but within the example, it shows no intermediary "vulnerability" object.

      "result": [
        {
         "id": "CVE-123",
         "severity": [
          { "method": "nvd", "score": "medium"},
          { "method": "cvss_score", "score", "5.2" }
         ]
        },

It seems like the intent is to have scanner.result.[*] optional object instead of scanner.result.[*].vulnerability, optional object?

EDIT:

A similar discrepancy seems to hold with the severity field, where it is not specified as a list but shows as a list.

scanner.result.[*].vulnerability.severity, required object

but the example shows a list

      "result": [
        {
         "id": "CVE-123",
         "severity": [
          { "method": "nvd", "score": "medium"},
          { "method": "cvss_score", "score", "5.2" }
         ]
        },

EDIT 2:

Invocation also exists in the example, not part of the spec:

    "invocation": {
      "parameters": [],
      "uri": "https://github.com/developer-guy/alpine/actions/runs/1071875574",
      "event_id": "1071875574",
      "builder.id": "GitHub Actions"
    },
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

No branches or pull requests

1 participant