anomalyco / anomalyco/opencode

Three workflows have no explicit permissions block

Open
#44,669 0 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Aug 24, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Three workflows have no permissions: block, so the GITHUB_TOKEN handed to them falls back to the repository/org default rather than being scoped to what they need:

  • .github/workflows/typecheck.yml
  • .github/workflows/storybook.yml
  • .github/workflows/notify-discord.yml

Every other workflow in the repo pins its scopes — deploy.yml sets them at the top level, review.yml, pr-management.yml and pr-standards.yml set them per job — so these three look like oversights rather than intent.

None of them need write access. typecheck checks out and runs bun typecheck, storybook checks out and builds, and notify-discord only forwards the release payload to a Discord webhook. contents: read covers all three.

This is hardening rather than a live bug: if the repository default is already read-only, behaviour doesn't change. It just stops these workflows from silently gaining write scopes if that default is ever widened.

Steps to reproduce

grep -L "permissions:" .github/workflows/*.yml lists the three files above.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.