Skip to content

Commit ee673a1

Browse files
committed
Fixing vulnerability
1 parent 1242bc9 commit ee673a1

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

NOTICE-3RD-PARTY-CONTENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
|convert-source-map|2.0.0|MIT|
152152
|core-util-is|1.0.3|MIT|
153153
|create-require|1.1.1|MIT|
154-
|cross-spawn|7.0.3|MIT|
154+
|cross-spawn|7.0.6|MIT|
155155
|debug|4.3.7|MIT|
156156
|decamelize|1.2.0|MIT|
157157
|decamelize|4.0.0|MIT|

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,28 @@ chmod -x /usr/bin/velocitas
449449
- [GitHub Issues](https://github.com/eclipse-velocitas/cli/issues)
450450
- [Mailing List](https://accounts.eclipse.org/mailing-list/velocitas-dev)
451451
- [Contribution](CONTRIBUTING.md)
452+
453+
## Updating dependencies
454+
455+
Sometimes dependencies needs to be updated to address vulnerabilities.
456+
If the vulnerability is known by npm (and a fix is published) you can typically request npm to update all existing vulnerabilities:
457+
458+
```bash
459+
sudo npm audit fix
460+
```
461+
462+
If the vulnerability is not (yet) considered as a vulnerability by npm you can update it manually:
463+
464+
```bash
465+
sudo npm update cross-spawn
466+
```
467+
468+
After updating you should do some basic checks that the tool is still working:
469+
470+
```bash
471+
npm run build
472+
```
473+
474+
After updating dependencies the file `NOTICE-3RD-PARTY-CONTENT.md` needs to be updated.
475+
The easiest way to do this is to create a Pull Request (preferably as draft),
476+
then the "Check Licenses" workflow will fail but as output produce content that you can add to the Pull Request.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)