-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add 'npm audit signatures' to workflow. #282
Conversation
a9b4842
to
3e0b8f5
Compare
If this seems reasonable, I will add it to our other npm-reliant analytics repositories. |
Yea, this seems fine. I'm wavering back and forth on whether deployment jobs should depend on this new job as well. My developer side doesn't want to be in a place where we can't deploy to some environment when we need to, and the security side is telling me that we shouldn't be able to deploy if the signatures don't match. Like currently running |
@sfrederick-gsa-gov please weigh in |
Hmm actually running the |
Ah I see, CI is using a more recent node version (22.10.0) than what we have configured in the repo (20.11.x). When I use the same version of node as CI, then the signatures check passes |
Actually, it was my intention that failing |
Yeah, the documentation for provenance attestations says:
So, that could be an issue, though maybe more an issue with the npm version than with the node version. For example -
|
I updated the CI jobs for this repo to use the |
Yea you're right, this is just a preference thing where I like to explicitly say that all the jobs before must pass. It's not necessary to do that. |
3e0b8f5
to
dc7e3ec
Compare
Done. |
No objections to that preference and I don't want to violate the repo's existing practices so I added dependencies to all the deploy jobs. |
This PR is related to the Trello card Implement subresource integrity for all analytics.usa.gov application components.
npm audit signatures
"verifies the registry signatures of downloaded packages" that "you download from the public npm registry, or any registry that supports signatures". It also verifies the "provenance attestations" of any packages that provide them.