Skip to content

security: Twelve workflows have no permissions block, so GITHUB_TOKEN gets the repo/org default #1599

Closed

Description

@scttfrdmn

From the pre-1.0 security audit (spore-host/spore-host#649, 2026-11-11), audit id supply-11. Verified: plausible, severity low (reviewer said low).

Where: .github/workflows/ci.yml:3 (at origin/main on 2026-11-11)

Evidence

No top-level or job-level permissions: in spawn/ci.yml, truffle/ci.yml, lagotto/ci.yml, libs/ci.yml, spore-host-mcp/ci.yml, spore-plugins/lint.yml, python-sdk/test-python-build.yaml, snakemake-executor-plugin-spawn/ci.yml and composition-test.yml, and spore-host-plugin-{globus,tailscale}/test.yml.

Scenario

If the org or repo setting is the legacy 'read and write' default, push-triggered runs of these jobs (third-party actions, pip/npm/go deps, codecov) get a contents/packages/actions write token that could push commits, tags or releases. Fork PRs stay read-only either way.

Verifier

All 11 listed workflow files have zero 'permissions:' keys (verified with grep -c; the title says twelve but eleven are listed). The effective token scope depends on the org or repo default_workflow_permissions setting, which cannot be seen statically. Fork PRs are read-only regardless.

Suggested fix

Add permissions: contents: read at the top of each, as the security.yml files already do.

Deployed-state check

Org spore-host and per-repo Actions setting default_workflow_permissions (should be 'read').

Activity

  1. added this to the Hardening milestone on Nov 11, 2026
  2. added
    type:security
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions