Skip to content

8538 - V2 entity view route #25703

8538 - V2 entity view route

8538 - V2 entity view route #25703

name: Modules security check
on:
push:
branches:
- development
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
jobs:
precheck:
uses: ./.github/workflows/precheck.yml
secrets: inherit
with:
is_pr: ${{ github.event_name == 'pull_request' }}
pr_number: ${{ github.event.pull_request.number }}
is_draft: ${{ github.event.pull_request.draft }}
pr_title: ${{ github.event.pull_request.title }}
pr_body: ${{ github.event.pull_request.body }}
head_sha: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.ref }}
branch: ${{ github.ref_name }}
event_name: ${{ github.event_name }}
is_protected_push: ${{ github.ref_name == 'development' || github.ref_name == 'production' }}
sha: ${{ github.sha }}
yarn-audit:
needs: precheck
if: needs.precheck.outputs.should_run == 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Cache node modules
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: install dependencies
run: yarn install
- run: yarn audit --level high --groups dependencies || if [ $? -gt 8 ]; then exit 1; else exit 0; fi