diff --git a/.github/workflows/build-ui-angular.yml b/.github/workflows/build-ui-angular.yml index 11c594a3..565965ca 100644 --- a/.github/workflows/build-ui-angular.yml +++ b/.github/workflows/build-ui-angular.yml @@ -21,8 +21,6 @@ jobs: - run: npm install -g @angular/cli - run: npm install working-directory: ./src/UIs/angular/ - - run: npm audit --audit-level=critical - working-directory: ./src/UIs/angular/ - run: ng build working-directory: ./src/UIs/angular/ - name: Upload Angular diff --git a/.github/workflows/build-ui-reactjs.yml b/.github/workflows/build-ui-reactjs.yml index 85bbdfc1..35cb9180 100644 --- a/.github/workflows/build-ui-reactjs.yml +++ b/.github/workflows/build-ui-reactjs.yml @@ -20,8 +20,6 @@ jobs: node-version: "18" - run: npm install working-directory: ./src/UIs/reactjs/ - - run: npm audit --audit-level=critical - working-directory: ./src/UIs/reactjs/ - run: CI=false npm run build # Treating warnings as errors because process.env.CI = true. working-directory: ./src/UIs/reactjs/ - name: Upload ReactJs diff --git a/.github/workflows/build-ui-vuejs.yml b/.github/workflows/build-ui-vuejs.yml index bcda3025..b897a6f8 100644 --- a/.github/workflows/build-ui-vuejs.yml +++ b/.github/workflows/build-ui-vuejs.yml @@ -17,11 +17,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "12" + node-version: "18" - run: npm install working-directory: ./src/UIs/vuejs/ - - run: npm audit --audit-level=critical - working-directory: ./src/UIs/vuejs/ - run: npm run build working-directory: ./src/UIs/vuejs/ - name: Upload VueJs diff --git a/.github/workflows/scan-dependencies-microservices.yml b/.github/workflows/scan-dependencies-microservices.yml new file mode 100644 index 00000000..249a227c --- /dev/null +++ b/.github/workflows/scan-dependencies-microservices.yml @@ -0,0 +1,36 @@ +name: Scan Dependencies Microservices + +on: + push: + paths: + - 'src/Microservices/**' + pull_request: + paths: + - 'src/Microservices/**' + schedule: + - cron: '0 * * * *' + +jobs: + build: + + defaults: + run: + working-directory: src/Microservices + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.100 + + - name: Install Aspire + run: dotnet workload install aspire + + - name: dotnet restore + run: dotnet restore + + - name: dotnet list package --vulnerable + run: dotnet list package --vulnerable diff --git a/.github/workflows/scan-dependencies-modularmonolith.yml b/.github/workflows/scan-dependencies-modularmonolith.yml new file mode 100644 index 00000000..573b24c3 --- /dev/null +++ b/.github/workflows/scan-dependencies-modularmonolith.yml @@ -0,0 +1,36 @@ +name: Scan Dependencies Modular Monolith + +on: + push: + paths: + - 'src/ModularMonolith/**' + pull_request: + paths: + - 'src/ModularMonolith/**' + schedule: + - cron: '0 * * * *' + +jobs: + build: + + defaults: + run: + working-directory: src/ModularMonolith + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.100 + + - name: Install Aspire + run: dotnet workload install aspire + + - name: dotnet restore + run: dotnet restore + + - name: dotnet list package --vulnerable + run: dotnet list package --vulnerable \ No newline at end of file diff --git a/.github/workflows/scan-dependencies-monolith.yml b/.github/workflows/scan-dependencies-monolith.yml new file mode 100644 index 00000000..46079cf5 --- /dev/null +++ b/.github/workflows/scan-dependencies-monolith.yml @@ -0,0 +1,36 @@ +name: Scan Dependencies Monolith + +on: + push: + paths: + - 'src/Monolith/**' + pull_request: + paths: + - 'src/Monolith/**' + schedule: + - cron: '0 * * * *' + +jobs: + build: + + defaults: + run: + working-directory: src/Monolith + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.100 + + - name: Install Aspire + run: dotnet workload install aspire + + - name: dotnet restore + run: dotnet restore + + - name: dotnet list package --vulnerable + run: dotnet list package --vulnerable diff --git a/.github/workflows/scan-dependencies-ui-angular.yml b/.github/workflows/scan-dependencies-ui-angular.yml new file mode 100644 index 00000000..4f85c0d2 --- /dev/null +++ b/.github/workflows/scan-dependencies-ui-angular.yml @@ -0,0 +1,25 @@ +name: Scan Dependencies UI Angular + +on: + push: + paths: + - "src/UIs/angular/**" + pull_request: + paths: + - "src/UIs/angular/**" + schedule: + - cron: '0 * * * *' + +env: + WORKING_DIRECTORY: ./src/UIs/angular/ + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "18" + - run: npm audit --audit-level=critical + working-directory: ./src/UIs/angular/ diff --git a/.github/workflows/scan-dependencies-ui-reactjs.yml b/.github/workflows/scan-dependencies-ui-reactjs.yml new file mode 100644 index 00000000..2dc42a29 --- /dev/null +++ b/.github/workflows/scan-dependencies-ui-reactjs.yml @@ -0,0 +1,25 @@ +name: Scan Dependencies UI ReactJs + +on: + push: + paths: + - "src/UIs/reactjs/**" + pull_request: + paths: + - "src/UIs/reactjs/**" + schedule: + - cron: '0 * * * *' + +env: + WORKING_DIRECTORY: ./src/UIs/reactjs/ + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "18" + - run: npm audit --audit-level=critical + working-directory: ./src/UIs/reactjs/ \ No newline at end of file diff --git a/.github/workflows/scan-dependencies-ui-vuejs.yml b/.github/workflows/scan-dependencies-ui-vuejs.yml new file mode 100644 index 00000000..44578ef0 --- /dev/null +++ b/.github/workflows/scan-dependencies-ui-vuejs.yml @@ -0,0 +1,24 @@ +name: Scan Dependencies UI VueJs + +on: + push: + paths: + - "src/UIs/vuejs/**" + pull_request: + paths: + - "src/UIs/vuejs/**" + schedule: + - cron: '0 * * * *' + +env: + WORKING_DIRECTORY: ./src/UIs/vuejs/ + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "18" + - run: npm audit --audit-level=critical