Skip to content

security hardening: verify the downloaded Linear Release CLI artifact before execution #59

Closed

Description

@lcv-leo

Summary

The official action currently downloads the selected Linear Release CLI asset with curl, makes it executable, and runs it without verifying the downloaded bytes against a checksum, signature, or artifact attestation.

This is a public hardening report about the observable installation path; it contains no credentials, private infrastructure, or exploit material.

Affected code

At install.sh in the current v0.16.0 action commit (0a25abab892a91062ebf42260dbb2ce6277aa205):

  1. the asset URL is selected from CLI_VERSION;
  2. curl -fsSL downloads it to $GITHUB_ACTION_PATH/linear-release;
  3. chmod +x marks it executable;
  4. the following composite step executes it.

The GitHub token improves download rate limits/authentication, but it does not authenticate the asset contents.

Why this matters

Pinning linear/linear-release-action by a full commit SHA protects the action source. Pinning cli_version protects the requested release name. Neither pin proves that the downloaded executable bytes match the artifact intended when that action version was reviewed.

The current v0.16.0 release is not marked immutable through the GitHub Releases API. A replaced or corrupted asset would therefore be executed by consumers before they can validate it.

Expected behavior

Please add a fail-closed integrity check before chmod/execution. Any of these would close the gap:

  • publish a versioned SHA-256 manifest and verify the selected asset;
  • verify a GitHub artifact attestation for the selected subject digest;
  • embed the expected per-platform digests in each immutable action release;
  • combine checksums/signatures with immutable GitHub releases.

The check should reject missing, malformed, or mismatched provenance rather than warning and continuing.

Suggested acceptance criteria

  • every supported OS/architecture asset has trusted integrity metadata;
  • the installer validates the downloaded file before execution;
  • checksum/signature/attestation mismatch exits non-zero;
  • tests cover a valid asset, a tampered asset, missing metadata, and unsupported platform;
  • the README documents the integrity and provenance contract.

References

Thank you for publishing and maintaining the official integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GitHubRelease CLISecuritybug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions