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

Delta.json and deltaLog.json metadata files to support 3rd party integrations #12

Merged
merged 9 commits into from
Sep 13, 2023

Conversation

hkong-mitre
Copy link
Collaborator

Update the old recent_activities.json file, which was used for debugging, to 2 "delta" files:

  1. delta.json specifies the changes to the repository in the current commit
  2. deltaLog.json specifies the changes to the repository with a history that goes back 30 days (changeable in .github/workflows/update.yml file).

Example delta.json:

{
  "fetchTime": "2023-08-23T18:47:51.227Z",
  "numberOfChanges": 2,
  "new": [
    {
      "cveId": "CVE-1970-0001",
      "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-1970-0001",
      "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/1970/0xxx/CVE-1970-0001.json"
    }
  ],
  "updated": [
    {
      "cveId": "CVE-1970-0002",
      "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-1970-0002",
      "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/1970/0xxx/CVE-1970-0002.json",
      "dateUpdated": "1970-01-01T01:02:00.000Z"
    }
  ],
  "unknown": []
}

Example of deltaLog.json:

[
  {
    "fetchTime": "2023-07-24T17:34:04.394Z",
    "durationInMsecs": 3044,
    "numberOfChanges": 2,
    "new": [],
    "updated": [
      {
        "cveId": "CVE-2023-3319",
        "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-2023-3319",
        "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2023/3xxx/CVE-2023-3319.json",
        "dateUpdated": "2023-07-24T17:31:04.394Z"
      },
      {
        "cveId": "CVE-2023-3321",
        "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-2023-3321",
        "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2023/3xxx/CVE-2023-3321.json",
        "dateUpdated": "2023-07-24T17:32:04.394Z"
      }
    ],
    "unknown": []
  },
  {
    "fetchTime": "2023-07-24T17:14:04.394Z",
    "durationInMsecs": 3244,
    "numberOfChanges": 2,
    "new": [
      {
        "cveId": "CVE-2023-3320",
        "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-2023-3320",
        "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2023/3xxx/CVE-2023-3320.json",
        "dateUpdated": "2023-07-24T17:08:04.394Z"
      }
    ],
    "updated": [
      {
        "cveId": "CVE-2023-3321",
        "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-2023-3321",
        "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2023/3xxx/CVE-2023-3321.json",
        "dateUpdated": "2023-07-24T17:12:04.394Z"
      }
    ],
    "unknown": []
  },
  {
    "fetchTime": "2023-07-24T17:02:00.394Z",
    "durationInMsecs": 2244,
    "numberOfChanges": 1,
    "new": [
      {
        "cveId": "CVE-2023-3321",
        "cveOrgLink": "https://www.cve.org/CVERecord?id=CVE-2023-3321",
        "githubLink": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2023/3xxx/CVE-2023-3321.json",
        "dateUpdated": "2023-07-24T17:06:31.093Z"
      }
    ],
    "updated": [],
    "unknown": []
  }
]

@hkong-mitre hkong-mitre merged commit 2ead584 into CVEProject:feature/delta Sep 13, 2023
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 this pull request may close these issues.

2 participants