Skip to content

security: SHA-pin the setup-cli action in generated workflows (pre-v1) #383

Closed

Description

@joshua-temple

Code scanning reports 5 medium PinnedDependencies alerts (#48-#52): the generated orchestrate.yaml and promote.yaml reference stablekernel/cascade/.github/actions/setup-cli@v0.1.0 by version tag, not by commit SHA. actions/checkout is already SHA-pinned; local actions need no pin. Only the cross-repo setup-cli self-reference is unpinned.

The CLI-version-bump automation (the generator's getCLIRef and the fleet repin) must resolve the version tag to its commit SHA and emit setup-cli@<sha> # vX.Y.Z, with the version bump updating the SHA. The existing action-pins feature (pin_mode sha) covers third-party actions via a static table but not the dynamic setup-cli self-reference.

Pre-v1 hardening. Needs a generator change, a regenerate of cascade's own workflows, and an e2e scenario asserting the setup-cli ref is a 40-hex SHA with a version comment. Resolves all 5 alerts.

Activity

  1. added a commit that references this issue on Jun 26, 2026
    51b0300
  2. added a commit that references this issue on Jun 27, 2026
    5702d41
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

    securitySecurity hardening and code-scanning findings

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions