Simplify Claude Code Leak FAQ content #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Package Audit | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "24" | |
| - name: Install dependencies if package.json exists | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| if [ -f package-lock.json ]; then | |
| npm ci | |
| else | |
| npm install --no-audit --no-fund | |
| fi | |
| fi | |
| - name: Run test suite (if present) | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| npm test --if-present | |
| else | |
| echo "No package.json found, skipping tests." | |
| fi | |
| - name: Run package audit | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| node scripts/audit-package.mjs --max-bytes=500000 | |
| else | |
| echo "No package.json found, skipping npm package audit." | |
| fi | |
| - name: Compare against baseline manifest (if present) | |
| shell: bash | |
| run: | | |
| if [ -f package.json ] && [ -f data/pack-manifest.json ]; then | |
| node scripts/compare-pack-manifest.mjs | |
| else | |
| echo "No package.json or no baseline manifest; skipping comparison." | |
| fi |