@conterra/vuln-scan 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,6 +49,9 @@ After that you have following commands available:
49
49
  - `ct-vuln-remove-project`
50
50
  - Removes a project from the configuration file and all vex statements related to the project.
51
51
  - Or removes a project from all vex statements matching a given vulnerability id.
52
+ - `ct-vuln-add-project-to-vex`
53
+ - Update vex files to include a new project version. The project is added to each vex file that references the existing project version given.
54
+ - This step is already included in the `ct-vuln-add-project` command, but it can be run separately to update the vex files for an already existing project entry in the configuration file.
52
55
 
53
56
  ### Vulnerability scan
54
57
 
@@ -457,6 +460,22 @@ $ ct-vuln-remove-project mapapps 4.18.2-SNAPSHOT CVE-2024-38820
457
460
  This will remove the product-id from all vex statements matching the given vulnerability.
458
461
  This is useful if a vulnerability is no longer detected for a project and you like to remove an existing statement.
459
462
 
463
+ ## Usage - Add project to vex
464
+ Adds a new project version to all vex statements matching a reference project version.
465
+ This step is already included in the `ct-vuln-add-project` command, but it can be run separately to update the vex files for an already existing project entry in the configuration file.
466
+
467
+ To update vex files to include a new project version, run:
468
+
469
+ ```sh
470
+ $ ct-vuln-add-project-to-vex <existingPurl> <newPurl>
471
+ ```
472
+
473
+ for example:
474
+
475
+ ```sh
476
+ $ ct-vuln-add-project-to-vex pkg:maven/de.conterra.mapapps/ct-mapapps@4.19.0 pkg:maven/de.conterra.mapapps/ct-mapapps@4.19.1
477
+ ```
478
+
460
479
  ## Usage - Simulate a version release with preparation of the next dev version
461
480
 
462
481
  By combining the `ct-vuln-add-project` and `ct-vuln-remove-project` commands, you can simulate a version release.