Skip to content

Fix serialize-javascript CPU exhaustion DoS (GHSA-qj8w-gfj5-8c6v) #821

Fix serialize-javascript CPU exhaustion DoS (GHSA-qj8w-gfj5-8c6v)

Fix serialize-javascript CPU exhaustion DoS (GHSA-qj8w-gfj5-8c6v) #821

name: Lint and Format - CodeQL Development MCP Server
on:
pull_request:
branches: ['main', 'next']
push:
branches: ['main', 'next']
permissions:
contents: read
jobs:
lint-and-format-markdown-and-yaml:
name: Lint and Format Checks for CodeQL Development MCP Server
runs-on: ubuntu-latest
steps:
- name: Lint and Format - Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Lint and Format - Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
cache: 'npm'
node-version-file: '.node-version'
- name: Lint and Format - Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: 'client/go.mod'
cache-dependency-path: 'client/go.sum'
- name: Lint and Format - Install node dependencies for all workspaces
run: npm ci --ignore-scripts
- name: Lint and Format - Run eslint
run: npm run lint
- name: Lint and Format - Run prettier format check
run: npm run format:check
- name: Lint and Format - Summary
run: |
echo "## Lint and Format Check Summary" >> $GITHUB_STEP_SUMMARY
echo "✅ ESLint checks completed on all workspaces" >> $GITHUB_STEP_SUMMARY
echo "✅ Prettier format checks completed" >> $GITHUB_STEP_SUMMARY
echo "✅ Markdownlint checks completed" >> $GITHUB_STEP_SUMMARY