Skip to content

Create one issue per vulnerability, and prevent duplicates #42

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

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Create one issue per vulnerability, and prevent duplicates #42

merged 1 commit into from
Aug 3, 2022

Conversation

facutuesca
Copy link
Contributor

Description

This changes the GH Actions workflow so that a new issue is created for each new vulnerability detected. If an issue already exists, it won't create a new one.
This prevents the current issue, where a new issue will be created each day with the same vulnerabilities, until the script stops reporting them.

Screenshot

How it works:

  • The output of the script is parsed to extract all the vulnerabilities IDs
  • Those IDs are inserted into a matrix, so that one job will be run for each
  • The new job create-issues will be run for each vulnerability and create an issue with the title New vulnerability CVE-XXXX-YYYYY found on main
  • If an issue with the same title already exists (open or closed), it won't create a new issue

This changes the GH Actions workflow so that a new issue is created
for each new vulnerability detected. If an issue already exists, it
won't create a new one.
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@mhdawson mhdawson merged commit 830c9b6 into nodejs:main Aug 3, 2022
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