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

[tactical] track JSPM deps in Snyk #1521

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Jun 13, 2023

https://trello.com/c/iYxnuAy1/1409-jspm

Following giving up on removing JSPM all-together (see #1520). In this PR we move all the build tooling (grunt, JSPM etc.) into devDependencies where they belong.

Then since Snyk can't detect JSPM dependencies, this PR introduces a workaround script which transforms the JSPM dependencies list and adds it to the top-level dependencies in a new dedicated package.json file, which the Snyk GitHub Action is now configured to use (the idea to do this is inspired by /~https://github.com/guardian/discussion-modtools/pull/812 - thanks @Mark-McCracken - although the implementation in this PR is a little simpler IMO). This looks to have had the desired effect...
image
(rather than showing zero dependencies recognised in Snyk dashboard)

@twrichards twrichards requested a review from a team as a code owner June 13, 2023 10:45
@twrichards twrichards force-pushed the tactical/track-JSPM-deps-in-snyk branch 9 times, most recently from c4f5a64 to cf9a8ea Compare June 13, 2023 15:48
@twrichards twrichards force-pushed the tactical/track-JSPM-deps-in-snyk branch from cf9a8ea to 58046c5 Compare June 13, 2023 15:59
Copy link
Contributor

@jonathonherbert jonathonherbert left a comment

Choose a reason for hiding this comment

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

Can see the extra deps in Snyk 👍

@twrichards twrichards merged commit c884a5f into main Jun 28, 2023
@twrichards twrichards deleted the tactical/track-JSPM-deps-in-snyk branch June 28, 2023 09:22
@prout-bot
Copy link

Seen on PROD (merged by @twrichards 12 minutes and 25 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants