Skip to content

Commit 6bb4e5b

Browse files
authored
Merge branch 'main' into add-numguard-tool
2 parents 7cd5d8b + c5b9d9a commit 6bb4e5b

10,857 files changed

Lines changed: 865402 additions & 1507486 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Please submit reports through one of the following channels:
1212

1313
- **Please do not** disclose vulnerabilities via public GitHub issues, pull requests,
1414
or social media
15-
- Reports submitted via channels other than this Bugcrowd submission email will not be reviewed and will be dismissed
15+
- Reports submitted via channels other than the methods above will not be reviewed and will be dismissed

.github/workflows/docs-broken-links.yml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ on:
44
pull_request:
55
paths:
66
- "docs/**"
7-
- "docs.json"
87
push:
98
branches:
109
- main
1110
paths:
1211
- "docs/**"
13-
- "docs.json"
1412
workflow_dispatch:
1513

1614
permissions:
@@ -28,11 +26,40 @@ jobs:
2826
with:
2927
node-version: "22"
3028

31-
- name: Install Mintlify CLI
32-
run: npm i -g mintlify
29+
- name: Install Mint CLI
30+
run: npm i -g mint@4.2.741
3331

34-
- name: Run broken link checker
32+
# Pruning immutable snapshots keeps the check fast (--files still parses every
33+
# page); the default version must stay because unprefixed links resolve to it.
34+
- name: Prune frozen doc versions (keep edge and latest)
35+
if: github.event_name != 'workflow_dispatch'
3536
run: |
36-
# Auto-answer the prompt with yes command
37-
yes "" | mintlify broken-links || test $? -eq 141
37+
python3 - <<'EOF'
38+
import json
39+
import shutil
40+
from pathlib import Path
41+
42+
docs = Path("docs")
43+
spec_path = docs / "docs.json"
44+
spec = json.loads(spec_path.read_text())
45+
46+
keep_dirs = {"edge"}
47+
for lang in spec["navigation"]["languages"]:
48+
kept = [v for v in lang["versions"] if v["version"] == "Edge" or v.get("default")]
49+
lang["versions"] = kept
50+
keep_dirs.update(v["version"] for v in kept if v["version"] != "Edge")
51+
52+
missing = [d for d in keep_dirs if not (docs / d).is_dir()]
53+
if missing:
54+
raise SystemExit(f"docs.json version labels do not match directories: {missing}")
55+
56+
spec_path.write_text(json.dumps(spec, indent=2))
57+
58+
for path in docs.glob("v*"):
59+
if path.is_dir() and path.name not in keep_dirs:
60+
shutil.rmtree(path)
61+
EOF
62+
63+
- name: Run broken link checker
64+
run: mint broken-links
3865
working-directory: ./docs

.github/workflows/linter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
19+
# Exclusion-only patterns match every non-excluded file under the
20+
# default "some" quantifier. Require all patterns (including "**")
21+
# so docs-only / markdown-only PRs correctly set code=false.
22+
predicate-quantifier: every
1923
filters: |
2024
code:
25+
- '**'
2126
- '!docs/**'
2227
- '!**/*.md'
2328

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
19+
# Exclusion-only patterns match every non-excluded file under the
20+
# default "some" quantifier. Require all patterns (including "**")
21+
# so docs-only / markdown-only PRs correctly set code=false.
22+
predicate-quantifier: every
1923
filters: |
2024
code:
25+
- '**'
2126
- '!docs/**'
2227
- '!**/*.md'
2328

.github/workflows/type-checker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
19+
# Exclusion-only patterns match every non-excluded file under the
20+
# default "some" quantifier. Require all patterns (including "**")
21+
# so docs-only / markdown-only PRs correctly set code=false.
22+
predicate-quantifier: every
1923
filters: |
2024
code:
25+
- '**'
2126
- '!docs/**'
2227
- '!**/*.md'
2328

.github/workflows/vulnerability-scan.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,40 @@ permissions:
1212
contents: read
1313

1414
jobs:
15+
changes:
16+
name: Detect changes
17+
runs-on: ubuntu-latest
18+
outputs:
19+
code: ${{ steps.set.outputs.code }}
20+
steps:
21+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
22+
if: github.event_name == 'pull_request'
23+
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
24+
id: filter
25+
if: github.event_name == 'pull_request'
26+
with:
27+
# Exclusion-only patterns match every non-excluded file under the
28+
# default "some" quantifier. Require all patterns (including "**")
29+
# so docs-only / markdown-only PRs correctly set code=false.
30+
predicate-quantifier: every
31+
filters: |
32+
code:
33+
- '**'
34+
- '!docs/**'
35+
- '!**/*.md'
36+
- name: Set code output
37+
id: set
38+
run: |
39+
if [ "${{ github.event_name }}" != "pull_request" ]; then
40+
echo "code=true" >> "$GITHUB_OUTPUT"
41+
else
42+
echo "code=${{ steps.filter.outputs.code }}" >> "$GITHUB_OUTPUT"
43+
fi
44+
1545
pip-audit:
1646
name: pip-audit
47+
needs: changes
48+
if: needs.changes.outputs.code == 'true'
1749
runs-on: ubuntu-latest
1850
steps:
1951
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -53,7 +85,6 @@ jobs:
5385
--skip-editable
5486
--format json
5587
--output pip-audit-report.json
56-
--ignore-vuln PYSEC-2026-597 # nltk 3.9.4 (CVE-2026-12243): no fix available, transitive through crewai-tools[xml] -> unstructured.
5788
--ignore-vuln GHSA-rrmf-rvhw-rf47 # torch 2.12.0 (CVE-2025-3000): local-only memory corruption in torch.jit.script; no fix available.
5889
--ignore-vuln GHSA-f4j7-r4q5-qw2c # chromadb 1.1.1 (CVE-2026-45829): pre-auth RCE in the HTTP server; no fix available.
5990
)

0 commit comments

Comments
 (0)