Skip to content

[org] Mutable-branch action refs (@main/@master/@latest) in secret-bearing workflows #17

Closed as not planned

Description

@bketelsen

Beyond the publish-to-r2 cases (#5, and the bootc-debian/first-setup/incus issue), several workflows reference actions by branch or floating tag — the ref can change arbitrarily under the workflow. Ordered by exposure:

Holding secrets:

  • titanoboa — ryand56/r2-upload-action@latest (third-party, R2 credentials; @latest is the worst-case ref)
  • snowdesktop — systemd/mkosi@main, actions/checkout@main; also appleboy/scp-action@v1 / appleboy/ssh-action@v1 (tag-pinned third-party actions holding SSH deploy secrets)
  • snowlive — appleboy/scp-action@v1 (same class)
  • homebrew-tap — Homebrew/actions/{setup-homebrew,git-user-config,git-try-push}@main (push credentials; upstream Homebrew habit, but still mutable)

No direct secrets, still mutable:

  • incus — tim-actions/get-pr-commits@master, tim-actions/dco@master
  • dakota-iso — reusable workflow projectbluefin/actions/.github/workflows/skill-drift-check.yml@v1 (cross-org, tag ref)

Fix: pin each to a full 40-char commit SHA with a # <version> trailing comment per ADR-0021. For the secret-bearing ones this is the same supply-chain hole ADR-0021 exists to close; do those first.

Ref: https://github.com/frostyard/core/blob/main/docs/adr/0021-sha-pinned-actions-and-least-privilege-ci.md

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions