Skip to content

Commit

Permalink
separate security tests into linux and non-linux hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Leskis committed Nov 5, 2020
1 parent cd62b82 commit 7984c1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7984c1a

Please sign in to comment.