Skip to content

Commit

Permalink
test: docker-in-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 5, 2024
1 parent ce90bc6 commit 2bf2a8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v3
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
with:
license-check: true
lint: true
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"check-examples": "tsc --build examples/typescript/*",
"lint": "standard",
"lint:fix": "standard --fix",
"load-data": "docker exec -it fastify-postgres psql -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres -d postgres",
"postgres": "docker run -p 5432:5432 --name fastify-postgres -e POSTGRES_PASSWORD=postgres -d postgres:11-alpine",
"postgres:init": "docker exec fastify-postgres psql -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres -d postgres",
"postgres:start": "docker run -p 5432:5432 --name fastify-postgres -e POSTGRES_PASSWORD=postgres -d postgres:11-alpine",

Check failure

Code scanning / CodeQL

Password in configuration file High

Hard-coded password 'postgres' in configuration file.
"postgres:stop": "docker rm fastify-postgres",
"pretest": "if [ -n \"$CI\" ]; then npm run postgres:start; fi",
"test": "npm run test:unit && npm run test:typescript",
"test:unit": "tap -J test/*.test.js",
"test:report": "standard && tap -J --coverage-report=html test/*.test.js",
Expand Down

0 comments on commit 2bf2a8c

Please sign in to comment.