Skip to content

ci: remove the unused draft-release workflow and its unpinned opencode install - #3988

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3757-remove-draft-release-workflow
Nov 27, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3757-remove-draft-release-workflow

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

[needs maintainer review: workflow change]

Summary

Removes .github/workflows/draft-release.yml, which is the only place that ran the frozen anomalyco/opencode/github wrapper. That wrapper installs the latest opencode CLI with curl -fsSL https://opencode.ai/install | bash (no version, checksum or signature) in a step that holds OPENROUTER_API_KEY, ZHIPU_API_KEY and a GITHUB_TOKEN with contents/pull-requests/issues: write. Upstream deleted the action (anomalyco/opencode#59032), the workflow last ran on 2026-05-21 (gh run list --workflow draft-release.yml), and releases are drafted with the local draft-release / goal-release skills. Deleting it settles the unpinned install instead of re-engineering a workflow nobody runs.

Changes

  • Delete .github/workflows/draft-release.yml.
  • Delete .github/actions/select-opencode-model/. git grep finds no other user (only draft-release.yml referenced it).
  • Drop the anomalyco/opencode/github ignore entry from .github/dependabot.yml; nothing references that action any more. The actions/checkout ignore stays.
  • .rulesync/rules/github-actions-security.md:
    • "Third-Party Action Pinning": replace the three draft-release paragraphs (frozen wrapper, runtime install trust boundaries, accepted stance / share: false) with one general rule: a SHA pin does not cover a tool an action downloads at run time, so such tools must be installed at an exact, checksum- or signature-verified version in a step without secrets. It records why draft-release.yml was removed.
    • "cicd-sensor": the sensor now runs in publish.yml, publish-assets.yml and security-scan.yml.
    • "OIDC Permissions": security-scan.yml is the only workflow with id-token: write for the cicd-sensor sign-in; publish*.yml keep it for npm trusted publishing and attestations. The anomalyco/opencode/github sentence is gone.
  • pnpm generate produces no tracked changes (the generated copies of this rule are gitignored).

Checks

pnpm cicheck: lint, type checks and cicheck:content pass. A few wall-clock-budget tests (src/utils/glob.test.ts, shell-command-categories.test.ts, opencode-hooks.test.ts and similar) timed out at 5s because the machine was at load average ~70 on 8 cores; they pass when rerun alone or with --testTimeout=60000. This PR touches no src/ file, so their result does not depend on it.

Design decisions

  • Delete rather than keep with a pinned install. Both issues and both triage plans list deletion as the default: six months without a run, and the local skill is the release path. If the workflow is wanted back, the rule now says how to do it safely (exact version, verified checksum, no secrets in the install step).
  • Kept the OPENROUTER_API_KEY / ZHIPU_API_KEY repository secrets untouched. security-scan.yml still uses OPENROUTER_API_KEY. ZHIPU_API_KEY now looks unused in workflows; removing the secret is a repository-settings change for the maintainer.

Skipped items

Closes #3757
Closes #3522

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

draft-release.yml ran the frozen anomalyco/opencode/github wrapper,
which installs the latest opencode CLI unpinned in a step that holds
the model API keys and a write-scoped GITHUB_TOKEN. The workflow has
not run since 2026-05-21 and releases are drafted with the local
draft-release skill, so remove it together with the
select-opencode-model action it alone used and the Dependabot ignore
entry for the wrapper. Update the GitHub Actions security rule to drop
the draft-release references and keep the general lesson about
unpinned run-time installs.

Refs #3757, #3522

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…move-draft-release-workflow

# Conflicts:
#	.github/workflows/draft-release.yml
@dyoshikawa
dyoshikawa merged commit 3df8f27 into main Nov 27, 2026
12 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3757-remove-draft-release-workflow branch November 27, 2026 05:58
@dyoshikawa dyoshikawa mentioned this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant