Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: actions/checkout@v2
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: ${{ github.event.repository.name }}
with:
Expand All @@ -21,7 +21,7 @@ jobs:

- name: Run npm install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
run: npm ci --ignore-scripts

- name: Run test
run: npm run test:ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Bootstrap
run: |
npm ci
npm ci --ignore-scripts
npm i -g lerna@5.1.5
lerna bootstrap
- name: Test
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is a basic workflow to help you get started with Actions

name: Trivy Scan

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "trivy"
trivy:
# The type of runner that the job will run on
runs-on: [self-hosted, linux, codebuild]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
scan-ref: '${{ github.workspace }}'
29 changes: 15 additions & 14 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false,
"defaultCollection": "@angular-eslint/schematics"
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"version": 1,
"newProjectRoot": "projects",
Expand Down Expand Up @@ -62,31 +64,32 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "./projects/workflows-creator/dist/workflows-element",
"index": "projects/workflows-creator/src/index.html",
"main": "projects/workflows-creator/src/main.ts",
"polyfills": "projects/workflows-creator/src/polyfills.ts",
"browser": "projects/workflows-creator/src/main.ts",
"polyfills": [
"projects/workflows-creator/src/polyfills.ts"
],
"tsConfig": "projects/workflows-creator/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/workflows-creator/src/favicon.ico",
"projects/workflows-creator/src/assets"
],
"styles": ["projects/workflows-creator/src/styles.scss",
"projects/workflows-creator/src/assets/icons/icomoon/style.css"],
"styles": [
"projects/workflows-creator/src/styles.scss",
"projects/workflows-creator/src/assets/icons/icomoon/style.css"
],
"scripts": []
},
"configurations": {
"production": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": false,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,

"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -118,9 +121,7 @@
"browserTarget": "WorkflowsElement:build"
}
}
}
}
}
},
"defaultProject": "workflows-creator"
}

}
}
Loading