From 411ff89b64c47d7acf6283a2309c649060cdb1fc Mon Sep 17 00:00:00 2001 From: "meterian-sca-qa[bot]" <150240621+meterian-sca-qa[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:31:45 +0000 Subject: [PATCH 1/2] Added Meterian badges in README.md [skip ci] --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 30e1850..17a907f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # microjs Examples of microservices written using NodeJS + +[![security status](https://qa.meterian.io/badge/pb/7c6196f9-2f53-44fa-bdd2-2bb986e5b034/security)](https://qa.meterian.io/projects/?pid=7c6196f9-2f53-44fa-bdd2-2bb986e5b034) [![stability status](https://qa.meterian.io/badge/pb/7c6196f9-2f53-44fa-bdd2-2bb986e5b034/stability)](https://qa.meterian.io/projects/?pid=7c6196f9-2f53-44fa-bdd2-2bb986e5b034) [![licensing status](https://qa.meterian.io/badge/pb/7c6196f9-2f53-44fa-bdd2-2bb986e5b034/licensing)](https://qa.meterian.io/projects/?pid=7c6196f9-2f53-44fa-bdd2-2bb986e5b034) + In this first example we see an implementation of a self-discovery architectural pattern, using a central registry, where microservices enlist themselves while they can get information about others. Please note that this is an extremely simple example: do not use it in production and, generally, use it at your own risk :) (I dropped water on my laptop using it! solution? put your laptop in a drawer full of rice for the night, it works like a charm!) The registry will start at port #3000, while the other services (time and rand) can be started at different ports: as soon as they are alive, they register themselves on the registry. The registry itself continuosly check that the registered services are still alive and kicking callling a /ping endpoint. The registry will be queried by the "hello" servlice in order to know where he can find the other two, used to produce its final output. From 4e7b5ee6f07d084406f87fb3ed516ba397405e75 Mon Sep 17 00:00:00 2001 From: "meterian-sca-qa[bot]" <150240621+meterian-sca-qa[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:31:46 +0000 Subject: [PATCH 2/2] Added Meterian workflow [skip ci] --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e72fdfa --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: vulnerability scan workflow + +on: push + +jobs: + meterian_scan: + name: Meterian client opensource scan + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Scan project with the Meterian client + uses: MeterianHQ/meterian-github-action@v1.0.17 + with: + cli_args: "--oss" #[ Meterian CLI Options ] \ No newline at end of file