Skip to content

Commit fccdc10

Browse files
committed
feat: 添加分享功能,升级 wx-server-sdk 至 3.0.4,增强 CI 密钥扫描
1 parent 4639080 commit fccdc10

21 files changed

Lines changed: 102 additions & 10 deletions

File tree

.github/workflows/validate.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1517

1618
- uses: actions/setup-node@v4
1719
with:
@@ -55,3 +57,21 @@ jobs:
5557
echo "Tracked sensitive configuration found."
5658
exit 1
5759
fi
60+
61+
- name: Scan Git history for high-confidence secrets
62+
shell: bash
63+
run: |
64+
set -euo pipefail
65+
patterns='wx[0-9a-fA-F]{16}|cloud://[A-Za-z0-9]|cloud[0-9]+-[a-z0-9-]{8,}|-----BEGIN ([A-Z ]+)?PRIVATE KEY-----'
66+
found=0
67+
68+
while IFS= read -r commit; do
69+
if git grep -I -n -E "$patterns" "$commit" --; then
70+
found=1
71+
fi
72+
done < <(git rev-list --all)
73+
74+
if [ "$found" -ne 0 ]; then
75+
echo "Potential secret found in Git history."
76+
exit 1
77+
fi

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- 内容安全检测(文本+图片)。
1111
- 订阅消息提醒功能。
1212
- 操作日志记录。
13+
- 首页和事项详情分享功能。
1314

1415
### 安全
1516

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ cp cloudfunctions/saveNoticeSubscriber/config.example.js cloudfunctions/saveNoti
5252
- 按考试安排、作业信息、活动信息、班级通知、其他等类型管理事项。
5353
- 图片、附件和链接支持。
5454
- 收藏事项。
55+
- 首页和事项详情支持好友分享与朋友圈分享。
5556
- 订阅消息提醒。
5657
- 班级成员身份认证。
5758
- 管理员和超级管理员权限体系。

cloudfunctions/applyAdminInvite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

cloudfunctions/checkAdmin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

cloudfunctions/contentSecurityCheck/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

cloudfunctions/createNotice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

cloudfunctions/deleteNotice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

cloudfunctions/saveNoticeSubscriber/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "node --check index.js"
88
},
99
"dependencies": {
10-
"wx-server-sdk": "~2.4.0"
10+
"wx-server-sdk": "3.0.4"
1111
},
1212
"license": "MIT"
1313
}

cloudfunctions/sendNoticeMessage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"wx-server-sdk": "~2.4.0"
12+
"wx-server-sdk": "3.0.4"
1313
}
1414
}

0 commit comments

Comments
 (0)