chore: [DHIS2-21571] dev container (incl. safe-chain) and CI safe-chain#4590
Open
JoakimSM wants to merge 6 commits into
Open
chore: [DHIS2-21571] dev container (incl. safe-chain) and CI safe-chain#4590JoakimSM wants to merge 6 commits into
JoakimSM wants to merge 6 commits into
Conversation
|
🚀 Deployed on https://deploy-preview-4590.capture.netlify.dhis2.org |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Adds a Dev Container config for VSCode. Using a Dev Container ensures that code runs in an isolated environment and helps protect developer machines against supply-chain attacks, malware, and similar threats. The Dev Container should work with Cypress. If you use the
cy:openscript command, you will need to open http://localhost:6080/vnc.html in your browser to see the Cypress Interface (The url is also printed in the terminal/shell when you run the command)AikidoSec safe-chain is used to wrap the commands for yarn, npm, etc in the container; preventing the use of packages published within the last five days, except for DHIS2 packages (we can change the number of days, let's just agree on something, but 5-7 days is good in my book). This helps protect developers from downloading malware and reduces the risk of publishing a compromised app.
If you want other extensions installed in the docker container: 1) Make a case for it and we can add it to the list of extensions that should be auto-installed for the Capture App 2) Add the extension to your personal list of extensions that are always installed when using a Dev Container (user config) 3) Install them manually on each container rebuild (you should not need to rebuild often).
Updated the CI workflows to use safe-chain and other best practices for caching. Update some actions using deprecated node versions to the newest ones.