chore(security): 移除安全文件签名功能

- 删除了 security/keys.json 配置文件
- 删除了 security/revocation.json 撤销列表文件
- 从 GitHub Actions 工作流中移除了安全文件签名步骤
- 更新了工作流中的 git add 命令,不再包含安全文件
- 删除了 sign-security.sh 签名脚本文件
This commit is contained in:
Flik
2025-12-31 21:28:30 +08:00
parent 9b4a12b51a
commit d7b749f54e
4 changed files with 1 additions and 59 deletions

View File

@@ -6,7 +6,6 @@ on:
paths:
- 'plugins/**/*.js'
- 'plugins/**/manifest.json'
- 'security/*.json'
workflow_dispatch:
jobs:
@@ -38,19 +37,10 @@ jobs:
- name: Generate store.json
run: bash scripts/generate-store.sh > store.json
- name: Sign security files
env:
SIGNING_KEY: ${{ secrets.PLUGIN_SIGNING_KEY }}
run: |
echo "$SIGNING_KEY" > /tmp/private.key
chmod 600 /tmp/private.key
bash scripts/sign-security.sh /tmp/private.key
rm -f /tmp/private.key
- name: Commit changes
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A "plugins/**/*.sig" store.json "security/*.json"
git add -A "plugins/**/*.sig" store.json
git diff --staged --quiet || git commit -m "chore: update signatures and store"
git push