docs: add npm version and download stats badges to README #89
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: CodeQL Security Scan | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| schedule: | |
| # Run weekly on Monday at 9 AM UTC | |
| - cron: '0 9 * * 1' | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: 🛡️ CodeQL Analysis | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ['javascript', 'typescript'] | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: 🟢 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: 🔍 Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| # Use extended security queries for comprehensive scanning | |
| queries: security-extended,security-and-quality | |
| config: | | |
| paths-ignore: | |
| - node_modules | |
| - coverage | |
| - build | |
| - dist | |
| - admin-ui/build | |
| - logs | |
| - test-files-to-copy | |
| - name: 📦 Install dependencies | |
| run: | | |
| npm ci | |
| cd admin-ui && npm ci | |
| - name: 🏗️ Build project | |
| run: | | |
| npm run build | |
| cd admin-ui && npm run build | |
| - name: 🛡️ Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{matrix.language}}" | |
| upload: true | |
| - name: 📊 Upload SARIF results | |
| uses: github/codeql-action/upload-sarif@v3 | |
| if: always() | |
| with: | |
| sarif_file: ../results | |
| continue-on-error: true |