Skip to content

chore: [DHIS2-21571] dev container (incl. safe-chain) and CI safe-chain#4590

Open
JoakimSM wants to merge 6 commits into
masterfrom
DHIS2-21571
Open

chore: [DHIS2-21571] dev container (incl. safe-chain) and CI safe-chain#4590
JoakimSM wants to merge 6 commits into
masterfrom
DHIS2-21571

Conversation

@JoakimSM
Copy link
Copy Markdown
Member

@JoakimSM JoakimSM commented May 28, 2026

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:open script 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.

@JoakimSM JoakimSM changed the title chore: [DHIS2-21571] Dev Container and safe-chain chore: [DHIS2-21571] dev container and safe-chain May 28, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

@JoakimSM JoakimSM added testing and removed testing labels Jun 1, 2026
@JoakimSM JoakimSM changed the title chore: [DHIS2-21571] dev container and safe-chain chore: [DHIS2-21571] dev container (incl. safe-chain) and CI safe-chain Jun 1, 2026
@JoakimSM JoakimSM marked this pull request as ready for review June 1, 2026 06:57
@JoakimSM JoakimSM requested a review from a team as a code owner June 1, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant