Skip to content

Internal actions/* references use floating tags, undermining SHA-pinned invocations #816

Description

@Fanzzzd

Problem

Pinning uses: alibaba/open-code-review@<commit> does not currently freeze what runs. In the v1.8.10 action, the internal actions use floating tags — actions/checkout@v7, actions/setup-node@v7, actions/upload-artifact@v4, actions/github-script@v9 — so the composite's implementation can change underneath a consumer's SHA pin without any change to their workflow. Consumers have no way to pin these references themselves, which makes the official action hard to use as a required review gate under SHA-pinning policies and encourages vendoring it.

Suggestion

  • Pin the internal actions/* references to full commit SHAs with a # vX.Y.Z trailing comment.
  • Show a fully SHA-pinned invocation in the GitHub Actions example.
  • Add a consistency check so a floating tag cannot reappear in action.yml.

→ Implemented in #836.


Scope note: this issue originally also covered the ocr_version: latest default. That is a separate design decision with an active discussion, now tracked in #839 so this issue can close with the part already agreed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions