diff --git a/package.json b/package.json index ae6b632..0974bed 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,10 @@ "cy:run": "npx cypress run", "test:cypress": "npx start-server-and-test start http://localhost:8080 cy:open", "test:headless": "BROWSER=none npx start-server-and-test start http://localhost:8080 cy:run", - "docker:security": "docker run --rm -e SCAN_URL=\"http://$(ip -4 addr show docker0 | grep -Po 'inet \\K[\\d.]+'):8080\" lirantal/is-website-vulnerable:latest", - "test:security": "npx start-server-and-test start http://localhost:8080 docker:security" + "docker:security:linux": "docker run --rm -e SCAN_URL=\"http://$(ip -4 addr show docker0 | grep -Po 'inet \\K[\\d.]+'):8080\" lirantal/is-website-vulnerable:latest", + "test:security:linux": "npx start-server-and-test start http://localhost:8080 docker:security:linux", + "docker:security:non-linux": "docker run --rm -e SCAN_URL=\"http://host.docker.internal:8080\" lirantal/is-website-vulnerable:latest", + "test:security:non-linux": "npx start-server-and-test start http://localhost:8080 docker:security:non-linux" }, "repository": { "type": "git",