Skip to content

gh skill: add a minimum release age option to install/update (supply chain safety) #14947

Open

Description

@polyomino24

Describe the feature or problem you'd like to solve

Without an explicit version or pin, gh skill install and gh skill update resolve to the newest version of a skill:

  1. the latest GitHub release (releases/latest), or
  2. the default branch HEAD if the repository has no release.

A skill that was published a few minutes ago (or a compromised release or commit) is therefore installed or updated immediately. Skills are executable-adjacent content: SKILL.md instructions and bundled scripts/ are loaded by coding agents (Claude Code, Copilot, Cursor, Codex, etc.) and can influence what the agent runs on the user's machine. A configurable delay would give maintainers and the community more time to detect and respond to compromised versions before users adopt them.

Today the only mitigation is to pin manually with --pin <tag|SHA> or skill@version. That requires vetting a specific version by hand, and pinned skills are skipped by gh skill update unless --unpin is used. There is no way to say "track the newest version, but only if it has been public for at least N days", which is a common policy in dependency managers.

Proposed solution

Add a minimum age option to gh skill install and gh skill update, for example:

# Only consider versions published at least 7 days ago
gh skill install github/awesome-copilot git-commit --min-release-age 7d

# Update to the newest version that is at least 3 days old
gh skill update --all --min-release-age 3d

Suggested behavior:

  • Releases: pick the newest release whose publish time (published_at) is at least the given age in the past. If the newest release is too young, fall back to the previous eligible release.
  • Default branch fallback (repositories without releases): never silently bypass the age policy by installing HEAD. Author/committer dates do not establish publication time: they can be backdated, and they can also be old for legitimate reasons (for example a commit made weeks ago and pushed or fast-forwarded today). The repository activity API (GET /repos/{owner}/{repo}/activity) may provide a basis for server-recorded timing, but history availability and the handling of force pushes, reverts, and branch deletion need investigation (for example, a past tip that was later removed by a force push should not be selected). If an eligible revision cannot be established safely, stop with a clear message. Refusing default-branch installs while this option is enabled would be a reasonable first version.
  • update: do nothing if the installed skill is already at or newer than the eligible version, and never downgrade because of this option. Report skills that were skipped because the latest version is too young (this would also show up in --dry-run).
  • Explicit pins: --pin and skill@version bypass the check, because the user chose that version explicitly. (Applying the check to explicit pins as well is defensible, so this is an open question.)
  • Configuration: allow a persistent default through gh config and/or an environment variable, so users and CI do not have to repeat the flag. A flag-only first version would already be useful.
  • Duration format: accept Go-style durations or days (72h, 7d).

Additional context

Other tools offer the same safeguard: pnpm minimumReleaseAge, uv exclude-newer, npm --before, and Renovate minimumReleaseAge.

A similar request exists for the Vercel skills CLI, which has the same exposure (new commits are picked up on the next add/update): vercel-labs/skills#2649. Since the two tools are intended to share a compatible lock format (see #14895), it would be good to keep the semantics of this option aligned where possible, e.g. whether an explicit pin bypasses the check.

Related, but not duplicates:

I searched open and closed issues in this repository for "release age", "cooldown", "supply chain", and similar terms and did not find an existing request. Tested on gh 2.103.3.

Activity

  1. added
    needs-triage
    on Nov 5, 2026
  2. cli-triage commented on Nov 9, 2026

    @cli-triage

    GitHub CLI 2.103.3 does not provide a minimum-age policy for gh skill install or gh skill update. Current resolution selects the latest release, then falls back to the default branch when no release exists; an explicit pin selects a fixed ref instead of tracking the newest eligible version. This leaves the requested moving safety window unsupported. The proposal is actionable and covers releases, updates, pins, and repositories without releases. Default-branch timing and whether explicit pins bypass the policy remain design decisions for maintainers.

    Supporting reports

    Generated by issue triage.

  3. deleted a comment from cli-triage on Nov 9, 2026
  4. added
    enhancement
    gh-skill
    on Nov 9, 2026
  5. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  6. removed
    needs-triage
    on Nov 9, 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

    enhancementgh-skill

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions