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

feat: select advisories #406

Merged
merged 2 commits into from
Jul 5, 2024
Merged

feat: select advisories #406

merged 2 commits into from
Jul 5, 2024

Conversation

MaineK00n
Copy link
Collaborator

@MaineK00n MaineK00n commented Jul 3, 2024

If this Pull Request is work in progress, Add a prefix of “[WIP]” in the title.

What did you implement:

select advisories and related cve ids

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

$ goval-dictionary fetch redhat 9
$ goval-dictionary select advisories redhat 9
map[string][]string{
  "RHSA-2022:7330": []string{
    "CVE-2022-2585",
  },
  "RHSA-2023:4378": []string{
    "CVE-2022-45869",
    "CVE-2023-0458",
    "CVE-2023-1998",
    "CVE-2023-3090",
    "CVE-2023-35788",
...

$ docker run --rm --name redis -d -p 127.0.0.1:6379:6379 redis
$ goval-dictionary fetch redhat 9 --dbtype redis --dbpath "redis://127.0.0.1:6379/1"
$ goval-dictionary select advisories redhat 9 --dbtype redis --dbpath "redis://127.0.0.1:6379/1"
map[string][]string{
  "RHSA-2023:2653": []string{
    "CVE-2023-2203",
  },
  "RHSA-2023:3423": []string{
    "CVE-2023-24805",
  },
  "RHBA-2024:1127": []string{
    "CVE-2023-48795",
  },
...

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n self-assigned this Jul 3, 2024
@MaineK00n MaineK00n force-pushed the MaineK00n/select-advisories branch 2 times, most recently from 11d6862 to ba8934e Compare July 3, 2024 06:18
@MaineK00n MaineK00n force-pushed the MaineK00n/select-advisories branch from ba8934e to 337e63a Compare July 4, 2024 14:55
@MaineK00n MaineK00n marked this pull request as ready for review July 4, 2024 15:05
@MaineK00n MaineK00n requested a review from shino July 4, 2024 15:05
Copy link
Contributor

@shino shino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏅

@MaineK00n MaineK00n merged commit f8daef5 into master Jul 5, 2024
13 checks passed
@MaineK00n MaineK00n deleted the MaineK00n/select-advisories branch July 5, 2024 06:31
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