Skip to content

Commit

Permalink
Merge branch 'main' into 117-run-as-non-root-user
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarat authored Nov 22, 2023
2 parents 3eb02bf + a23cd42 commit 4da92fa
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.10.2
version: 8.x
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.10.2
version: 8.x
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A monorepo for managing signed data. Consists of:
- [pusher](./packages/pusher/README.md) - A service for pushing data provider signed data.
- [e2e](./packages/e2e/README.md) - End to end test utilizing Mock API, pusher and signed API.

Read the
[specification](https://docs.google.com/document/d/1-kUPIXSD4ZW1SGs_P8HsejC9k9aHB-NXs9_6-OclnmE/edit#heading=h.i307237rdfda)
for more details on the architecture and the components.

## Getting started

The repo uses `pnpm` workspaces. To install the dependencies:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "signed-api",
"version": "1.0.0",
"engines": {
"node": "^18.14.0",
"pnpm": "^8.10.2"
"node": "^18.18.2",
"pnpm": "^8.10.5"
},
"scripts": {
"build": "pnpm recursive run build",
Expand Down
8 changes: 8 additions & 0 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Enables or disables logging. Options:
- `true` - Enables logging.
- `false` - Disables logging.

Default: `true`.

#### `LOG_FORMAT`

The format of the log output. Options:
Expand All @@ -67,6 +69,8 @@ The format of the log output. Options:
- `pretty` - Logs are formatted in a human-friendly "pretty" way. Ideal, when running the service locally and in
development.

Default: `json`.

#### `LOG_COLORIZE`

Enables or disables colors in the log output. Options:
Expand All @@ -75,6 +79,8 @@ Enables or disables colors in the log output. Options:
Recommended when running locally and in development.
- `false` - Disables colors in the log output. Recommended for production.

Default: `false`.

#### `LOG_LEVEL`

Defines the minimum level of logs. Logs with smaller level (severity) will be silenced. Options:
Expand All @@ -84,6 +90,8 @@ Defines the minimum level of logs. Logs with smaller level (severity) will be si
- `warn` - Enables logs with level `warn` and `error`.
- `error` - Enables logs with level `error`.

Default: `info`.

### Configuration file

The API is configured via `signed-api.json` configuration file.
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "api",
"version": "1.0.0",
"engines": {
"node": "^18.14.0",
"pnpm": "^8.10.2"
"node": "^18.18.2",
"pnpm": "^8.10.5"
},
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "e2e",
"version": "1.0.0",
"engines": {
"node": "^18.14.0",
"pnpm": "^8.10.2"
"node": "^18.18.2",
"pnpm": "^8.10.5"
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
Expand Down
8 changes: 8 additions & 0 deletions packages/pusher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Enables or disables logging. Options:
- `true` - Enables logging.
- `false` - Disables logging.

Default: `true`.

#### `LOG_FORMAT`

The format of the log output. Options:
Expand All @@ -92,6 +94,8 @@ The format of the log output. Options:
- `pretty` - Logs are formatted in a human-friendly "pretty" way. Ideal, when running the service locally and in
development.

Default: `json`.

#### `LOG_COLORIZE`

Enables or disables colors in the log output. Options:
Expand All @@ -100,6 +104,8 @@ Enables or disables colors in the log output. Options:
Recommended when running locally and in development.
- `false` - Disables colors in the log output. Recommended for production.

Default: `false`.

#### `LOG_LEVEL`

Defines the minimum level of logs. Logs with smaller level (severity) will be silenced. Options:
Expand All @@ -109,6 +115,8 @@ Defines the minimum level of logs. Logs with smaller level (severity) will be si
- `warn` - Enables logs with level `warn` and `error`.
- `error` - Enables logs with level `error`.

Default: `info`.

### Configuration files

Pusher needs two configuration files, `pusher.json` and `secrets.env`. All expressions of a form `${SECRET_NAME}` are
Expand Down
4 changes: 2 additions & 2 deletions packages/pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "pusher",
"version": "0.1.0",
"engines": {
"node": "^18.14.0",
"pnpm": "^8.10.2"
"node": "^18.18.2",
"pnpm": "^8.10.5"
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
Expand Down
12 changes: 5 additions & 7 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@
"extends": ["config:base"],
"packageRules": [
{
"matchPackageNames": ["node"],
"enabled": false
},
{
"matchPackageNames": ["ethers"],
"matchPackageNames": ["ethers", "node"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch", "minor"],
"schedule": ["before 1am on the first day of the month"],
"groupName": "devDependencies (non-major)"
"groupName": "non-major-devDependencies"
},
{
"matchDepTypes": ["dependencies"],
"matchUpdateTypes": ["patch", "minor"],
"schedule": ["before 1am on the first day of the month"],
"groupName": "dependencies (non-major)"
"groupName": "non-major-dependencies"
}
],
"rangeStrategy": "bump",
"lockFileMaintenance": {
"enabled": false
},
"reviewers": ["Siegrift"],
"minimumReleaseAge": "7 days",
"internalChecksFilter": "strict",
"dependencyDashboard": false
}

0 comments on commit 4da92fa

Please sign in to comment.