Skip to content

Commit 248bdc0

Browse files
committed
脱敏
1 parent 117a137 commit 248bdc0

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

.github/workflows/secret-scan.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: secret-scan
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
gitleaks:
14+
name: gitleaks
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Run gitleaks
23+
uses: gitleaks/gitleaks-action@v2
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+

network-search/SKILL.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ metadata:
2727

2828
### 1. **Brave Search API** (curl 直接调用) ⭐ **非学术领域首选**
2929
- **状态**: ✅ 完全正常(已验证网页搜索和新闻搜索)
30-
- **API Key**: ``
30+
- **API Key**: 建议通过环境变量提供(例如 `BRAVE_API_KEY`),不要写入仓库
3131
- **主要功能**:
3232
- `brave_web_search` - 网页搜索
3333
- `brave_news_search` - 新闻搜索
@@ -44,13 +44,17 @@ metadata:
4444
- **适用场景**: 英文内容、全球信息、多类型搜索
4545
- **curl 模板**:
4646
```bash
47+
# 建议把 token 放到环境变量里,而不是写进仓库/文档:
48+
# - bash/zsh: export BRAVE_API_KEY="xxx"
49+
# - PowerShell: $env:BRAVE_API_KEY="xxx"
50+
#
4751
# 网页搜索
4852
curl -s "https://api.search.brave.com/res/v1/web/search?q=QUERY&count=10" \
49-
-H "X-Subscription-Token: "
53+
-H "X-Subscription-Token: <YOUR_TOKEN>"
5054

5155
# 新闻搜索
5256
curl -s "https://api.search.brave.com/res/v1/news/search?q=QUERY&count=10" \
53-
-H "X-Subscription-Token: "
57+
-H "X-Subscription-Token: <YOUR_TOKEN>"
5458
```
5559

5660
### 2. **智谱搜索 MCP** (`zhipu-web-search-sse`) ✅ **中文内容首选**
@@ -189,7 +193,7 @@ metadata:
189193
#### 网页搜索 (`/res/v1/web/search`)
190194
```bash
191195
curl -s "https://api.search.brave.com/res/v1/web/search?q=QUERY&count=10" \
192-
-H "X-Subscription-Token: "
196+
-H "X-Subscription-Token: <YOUR_TOKEN>"
193197
```
194198

195199
**主要参数**:
@@ -204,7 +208,7 @@ curl -s "https://api.search.brave.com/res/v1/web/search?q=QUERY&count=10" \
204208
#### 新闻搜索 (`/res/v1/news/search`)
205209
```bash
206210
curl -s "https://api.search.brave.com/res/v1/news/search?q=QUERY&count=10" \
207-
-H "X-Subscription-Token: "
211+
-H "X-Subscription-Token: <YOUR_TOKEN>"
208212
```
209213

210214
**额外参数**:
@@ -213,7 +217,7 @@ curl -s "https://api.search.brave.com/res/v1/news/search?q=QUERY&count=10" \
213217
#### 视频搜索 (`/res/v1/videos/search`)
214218
```bash
215219
curl -s "https://api.search.brave.com/res/v1/videos/search?q=QUERY&count=10" \
216-
-H "X-Subscription-Token: "
220+
-H "X-Subscription-Token: <YOUR_TOKEN>"
217221
```
218222

219223
**额外参数**:
@@ -222,7 +226,7 @@ curl -s "https://api.search.brave.com/res/v1/videos/search?q=QUERY&count=10" \
222226
#### 图片搜索 (`/res/v1/images/search`)
223227
```bash
224228
curl -s "https://api.search.brave.com/res/v1/images/search?q=QUERY&count=10" \
225-
-H "X-Subscription-Token: "
229+
-H "X-Subscription-Token: <YOUR_TOKEN>"
226230
```
227231

228232
**额外参数**:

0 commit comments

Comments
 (0)