Skip to content
Merged
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
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@
pull_request:

jobs:
security-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Production dependency audit
run: npm audit --omit=dev --audit-level=high

lint-and-test:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,14 @@ Exports include:
| `npm run build_cc` | Build the library (`ngx-coding-components`). |
| `npm run test:cc` | Run library unit tests. |
| `npm run lint` | Run ESLint across the project. |
| `npm run audit:prod` | Audit production dependencies. |
| `npm run build:elements` | Build the Web Components bundle. |
| `npm run buildAndPack_sc` | Build and package the Verona Schemer. |

## CI gates

Pull requests and pushes run GitHub Actions checks for production dependency security, linting, and coverage tests. The `security-audit` job runs `npm audit --omit=dev --audit-level=high`; high or critical production dependency findings must be resolved before merging.

## Demo App
The folder `/src` contains a demo application that showcases all components. Use `npm start` to run it locally.

Expand Down
Loading