docs: add SECURITY.md, dependabot.yml, .gitattributes (HOL scan remediation) - #388
ranxianglei wants to merge 3 commits into
Conversation
…iation) Addresses missing-artifact findings flagged by the awesome-ai-plugins HOL scanner (issue #387). No behavior change.
📦 Built Plugin ArtifactBranch: Option A — Install from npm PR tag (recommended)opencode plugin opencode-acp@pr-388 --globalEach push to this PR publishes a new version under the Option B — Install from GitHubopencode plugin "github:ranxianglei/opencode-acp#2026-09-11_scan-remediation" --globalOption C — Download artifact
tar xzf opencode-acp-pr388.tgz
cp -r package/dist ~/.cache/opencode/packages/opencode-acp@latest/node_modules/opencode-acp/dist
This comment is automatically updated on each push. |
|
复核这个 |
复核完成。结论:diff 干净、CI 全绿,但启用 dependabot 会踩中本仓自己的 pr-validation 门禁——建议修完再合并。 ✅ 通过项
🔴 阻断项:dependabot 会永久卡死 pr-validation本仓分支保护要求
Dependabot 的分支名形如 建议修法(小改,在 check-pr.sh 开头加分支豁免): # Bot-managed branches (dependabot) cannot follow human branch/devlog conventions
case "$BRANCH" in
dependabot/*)
echo "ℹ '$BRANCH' is a bot branch — skipping branch-name & devlog checks"
exit 0
;;
esac同时在 AGENTS.md §5.1.2 补一句豁免说明。这动了 CI 门禁语义,由你拍板:① 加豁免(推荐,否则 dependabot 形同虚设);② 或者干脆去掉 dependabot.yml。你点头我就直接在 PR 分支上补 commit。 🟡 SECURITY.md 两处措辞问题
🟢 合并前准备
一句话中文摘要:diff 干净、CI 全绿,但启用 dependabot 会让今后所有 bot PR 被本仓自己的 pr-validation(分支命名 + devlog 检查)永久卡红,建议先在 check-pr.sh 加 bot 分支豁免再合并;另请顺手修掉 SECURITY.md 两处措辞(邮箱渠道缺失、@stable 用户不在支持范围内)。 |
|
小问题直接修复 |
…URITY.md wording) - check-pr.sh: exempt dependabot/* branches from checks 1-3 (branch name + devlog); they cannot follow human conventions and would otherwise fail the required pr-validation check on every bot PR. Check 4 (changelog/version) still applies. - AGENTS.md §5.1.2: document the bot-branch exemption. - SECURITY.md: support both @stable and @latest release lines (README installs @stable); maintainer contact now points at GitHub profile instead of a package.json author field that contains no email.
已按"小问题直接修复"处理完毕。两个新 commit 已推到 修复内容(commit
|
Add security & dependency-hygiene files (HOL scan remediation)
Motivated by #387: the awesome-ai-plugins catalog's HOL scanner scored
opencode-acpat 79/100, one point below the required ≥ 80. The gap came from missing best-practice artifacts, not plugin defects.Changes
SECURITY.md— private vulnerability-reporting policy (GitHub Security Advisory + maintainer email), scoped to this plugin..github/dependabot.yml— weekly npm + GitHub Actions update PRs (dev-deps grouped)..gitattributes— explicit binary-asset marking only (no global text rule, so existing files' line endings are untouched).Notes
lib/,index.ts, ortests/; behavior is unchanged, so no code review is required. No version bump.typecheck/test/build(CI runs those gates).plugin-scanner verify .can't run in the agent sandbox). Optional follow-up if more margin is needed: pin CI actions to immutable SHAs.