Skip to content

Commit 7984c1a

Browse files
author
Adam Leskis
committed
separate security tests into linux and non-linux hosts
1 parent cd62b82 commit 7984c1a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
"cy:run": "npx cypress run",
1010
"test:cypress": "npx start-server-and-test start http://localhost:8080 cy:open",
1111
"test:headless": "BROWSER=none npx start-server-and-test start http://localhost:8080 cy:run",
12-
"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",
13-
"test:security": "npx start-server-and-test start http://localhost:8080 docker:security"
12+
"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",
13+
"test:security:linux": "npx start-server-and-test start http://localhost:8080 docker:security:linux",
14+
"docker:security:non-linux": "docker run --rm -e SCAN_URL=\"http://host.docker.internal:8080\" lirantal/is-website-vulnerable:latest",
15+
"test:security:non-linux": "npx start-server-and-test start http://localhost:8080 docker:security:non-linux"
1416
},
1517
"repository": {
1618
"type": "git",

0 commit comments

Comments
 (0)