Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
TypeScript ai-agentsanthropicclaude-codeclicode-graphcodexcontext-engineeringcursordeveloper-toolsgeminiknowledge-graphllmmcpmcp-serveropen-sourceopenaitree-sitter
ci: add OpenSSF Scorecard, CodeQL, CI, and Dependabot
Shrish Dwivedi3bd316ca0ac7
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlnew file mode 100644index 00000000..39240b5d--- /dev/null+++ b/.github/dependabot.yml@@ -0,0 +1,12 @@+version: 2+updates:+ - package-ecosystem: npm+ directory: /+ schedule:+ interval: weekly+ open-pull-requests-limit: 10++ - package-ecosystem: github-actions+ directory: /+ schedule:+ interval: weeklydiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..3369600e--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,31 @@+name: CI++on:+ push:+ branches: [main]+ pull_request:+ branches: [main]++permissions:+ contents: read++jobs:+ test:+ runs-on: ubuntu-latest+ steps:+ - name: Checkout code+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4+ with:+ persist-credentials: false++ - name: Setup Node.js+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4+ with:+ node-version: '20'+ cache: npm++ - name: Install dependencies+ run: npm ci++ - name: Test+ run: npm testdiff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlnew file mode 100644index 00000000..70e323b0--- /dev/null+++ b/.github/workflows/codeql.yml@@ -0,0 +1,34 @@+name: CodeQL++on:+ push:+ branches: [main]+ pull_request:+ branches: [main]+ schedule:+ - cron: '30 3 * * 3'++permissions:+ contents: read++jobs:+ analyze:+ runs-on: ubuntu-latest+ permissions:+ actions: read+ contents: read+ security-events: write++ steps:+ - name: Checkout code+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4+ with:+ persist-credentials: false++ - name: Initialize CodeQL+ uses: github/codeql-action/init@3b0bd1d116c0bde30213346b22d4f634d96a2fb0 # v3+ with:+ languages: javascript-typescript++ - name: Perform CodeQL analysis+ uses: github/codeql-action/analyze@3b0bd1d116c0bde30213346b22d4f634d96a2fb0 # v3diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.ymlnew file mode 100644index 00000000..b85dc1ec--- /dev/null+++ b/.github/workflows/scorecard.yml@@ -0,0 +1,43 @@+name: Scorecard analysis+on:+ push:+ branches: [main]+ schedule:+ - cron: '30 2 * * 1'+ workflow_dispatch:++permissions: read-all++jobs:+ analysis:+ runs-on: ubuntu-latest+ permissions:+ security-events: write+ id-token: write+ contents: read+ actions: read++ steps:+ - name: Checkout code+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4+ with:+ persist-credentials: false++ - name: Run analysis+ uses: ossf/scorecard-action@99c09fe975337306107572b4fdf4db224cf8e2f2 # v2.4.3+ with:+ results_file: results.sarif+ results_format: sarif+ publish_results: true++ - name: Upload SARIF results as artifact+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4+ with:+ name: SARIF file+ path: results.sarif+ retention-days: 5++ - name: Upload SARIF results to code scanning+ uses: github/codeql-action/upload-sarif@3b0bd1d116c0bde30213346b22d4f634d96a2fb0 # v3+ with:+ sarif_file: results.sarifdiff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 00000000..87af0b6e--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,18 @@+# Security Policy++## Supported Versions++Graft is pre-1.0 and ships continuously from `main`. Security fixes are made against+the latest published npm release (`@nanonets/graft`); older versions are not+separately patched.++## Reporting a Vulnerability++Please do not open a public GitHub issue for security vulnerabilities.++Report vulnerabilities privately via+[GitHub Security Advisories](https://github.com/NanoNets/Graft/security/advisories/new),+or email [email protected].++We'll acknowledge your report within 3 business days and aim to ship a fix or+mitigation within 30 days, depending on severity.