Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Secfixes Tracker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ariadne Conill
  • Secfixes Tracker
  • Merge requests
  • !4

Merged
Created Sep 06, 2021 by Teppei Fukuda@knqyf263Contributor

models: add repo in PackageVersion

  • Overview 0
  • Commits 1
  • Changes 1

The current JSON schema doesn't include repo info under state, then we cannot know which repo is affected.

Before:

  "state": [
    {
      "@context": "https://localhost:5000/static/context.jsonld",
      "fixed": false,
      "id": "https://localhost:5000/vuln/CVE-2021-31879#state/5318",
      "packageVersion": "https://localhost:5000/srcpkg/wget/1.20.3-r1",
      "type": "VulnerabilityState",
      "vuln": "https://localhost:5000/vuln/CVE-2021-31879"
    },
    {
      "@context": "https://localhost:5000/static/context.jsonld",
      "fixed": false,
      "id": "https://localhost:5000/vuln/CVE-2021-31879#state/5350",
      "packageVersion": "https://localhost:5000/srcpkg/wget/1.21.1-r1",
      "type": "VulnerabilityState",
      "vuln": "https://localhost:5000/vuln/CVE-2021-31879"
    }
  ],

After:

  "state": [
    {
      "@context": "https://localhost:5000/static/context.jsonld",
      "fixed": false,
      "id": "https://localhost:5000/vuln/CVE-2021-31879#state/5318",
      "packageVersion": "https://localhost:5000/srcpkg/wget/1.20.3-r1",
      "repo": "3.12-main",
      "type": "VulnerabilityState",
      "vuln": "https://localhost:5000/vuln/CVE-2021-31879"
    },
    {
      "@context": "https://localhost:5000/static/context.jsonld",
      "fixed": false,
      "id": "https://localhost:5000/vuln/CVE-2021-31879#state/5350",
      "packageVersion": "https://localhost:5000/srcpkg/wget/1.21.1-r1",
      "repo": "3.13-main",
      "type": "VulnerabilityState",
      "vuln": "https://localhost:5000/vuln/CVE-2021-31879"
    }
  ],
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: add_repo