Skip to content

chore: README whitespace cleanup, format SECURITY assert #17

chore: README whitespace cleanup, format SECURITY assert

chore: README whitespace cleanup, format SECURITY assert #17

name: Validate Cursor Plugin
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- ".cursor-plugin/**"
- ".github/**"
- ".gitignore"
- "assets/**"
- "mcp.json"
- "package.json"
- "package-lock.json"
- "README.md"
- "SUBMISSION.md"
- "rules/**"
- "agents/**"
- "commands/**"
- "schemas/**"
- "scripts/**"
- "CHANGELOG.md"
- "skills/**"
- "SECURITY.md"
- "LICENSE"
permissions:
contents: read
jobs:
validate:
name: Validate package structure
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "22"
- name: Install dependencies
run: npm ci
- name: Audit dependencies (high or critical)
run: npm audit --audit-level=high
- name: Validate plugin and hosted health
run: npm run check
- name: Check README references
run: |
node -e "const fs=require('node:fs');const text=fs.readFileSync('README.md','utf8');for(const value of ['https://mcp.leadmagic.io/mcp','https://github.com/LeadMagic/leadmagic-openapi','https://cursor.com/docs/plugins','[SECURITY.md](SECURITY.md)','leadmagic://docs','LeadMagic MCP Tools','OAuth','[LICENSE](LICENSE)']){if(!text.includes(value)){throw new Error('README.md is missing required reference: '+value)}}"