Skip to content

Prefer precise version numbers in action pin algorithm#7260

Merged
pelikhan merged 3 commits intodependabot/npm_and_yarn/dot-github/workflows/sentry/mcp-server-0.26.0from
copilot/sub-pr-7234
Dec 22, 2025
Merged

Prefer precise version numbers in action pin algorithm#7260
pelikhan merged 3 commits intodependabot/npm_and_yarn/dot-github/workflows/sentry/mcp-server-0.26.0from
copilot/sub-pr-7234

Conversation

Copy link
Contributor

Copilot AI commented Dec 22, 2025

The Dependabot PR bumped @sentry/mcp-server from 0.24.0 to 0.26.0, which triggered a review of the action update algorithm. The algorithm was simplified versions from precise formats (e.g., "v6.0.0") to major-only formats (e.g., "v6"), reducing traceability.

Changes

Algorithm Enhancement

  • Updated action pin algorithm to prefer precise semantic versions (e.g., "v6.0.0") over major-version-only tags (e.g., "v6")
  • Added isPreciseVersion() method to detect versions with explicit minor and patch components
  • Modified getLatestActionRelease() and getLatestActionReleaseViaGit() to prefer precise versions when comparing equal versions
  • Added comprehensive tests for precise version detection and preference logic

Version Restoration

  • Restored precise versions in actions-lock.json:

    • actions/download-artifact@v6: "v6" → "v6.0.0"
    • actions/upload-artifact@v5: "v5" → "v5.0.0"
    • Other actions maintained with precise versions
  • Recompiled all 120 workflow .lock.yml files with precise version comments for better clarity and traceability

Impact

When running gh aw update, the system now maintains precise version numbers throughout, providing better clarity about which exact version of an action is being used. This makes it easier to track updates and debug issues while maintaining compatibility with semantic versioning practices.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Updated 7 GitHub Actions to latest versions:
  - haskell-actions/setup: v2.9.0 → v2.9.1
  - actions/download-artifact: v6.0.0 → v6
  - actions/upload-artifact: v5.0.0 → v5
  - github/stale-repos: v3 → v3.0.2
  - github/codeql-action/upload-sarif: v3 → v3.31.9
- Updated actions-lock.json with new action versions
- Recompiled all 120 workflow .lock.yml files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump @sentry/mcp-server to version 0.26.0 Update GitHub Actions versions after @sentry/mcp-server bump Dec 22, 2025
Copilot AI requested a review from pelikhan December 22, 2025 14:56
@pelikhan
Copy link
Contributor

@copilot update the action pin algorithm to prefer precise version numbers, live v6.0.0 instead of v6

Update the action pin algorithm to prefer precise semantic versions
(e.g., v6.0.0) over major-version-only tags (e.g., v6) when both
represent the same version.

Changes:
- Add isPreciseVersion() method to check if a version has explicit
  minor and patch components (e.g., "v6.0.0" is precise, "v6" is not)
- Modify getLatestActionRelease() and getLatestActionReleaseViaGit()
  to prefer precise versions when comparing equal versions
- Add comprehensive tests for precise version detection and preference
- Restore actions-lock.json entries to use precise versions
- Recompile all workflow lock files with precise version comments

This ensures that when running `gh aw update`, the algorithm will
maintain precise version numbers like "v6.0.0" instead of simplifying
them to "v6", providing better clarity and traceability for which
exact version of an action is being used.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 22, 2025

@copilot update the action pin algorithm to prefer precise version numbers, live v6.0.0 instead of v6

Updated the action pin algorithm to prefer precise version numbers. Changes committed in 92a97df.

The algorithm now:

  • Detects precise versions (e.g., "v6.0.0" with 2+ dots) vs major-only versions (e.g., "v6")
  • When comparing equal versions, prefers the precise one
  • Maintains "v6.0.0" format instead of simplifying to "v6"

All workflow lock files have been recompiled with precise version comments, and comprehensive tests have been added to ensure the behavior is maintained.

Copilot AI changed the title Update GitHub Actions versions after @sentry/mcp-server bump Prefer precise version numbers in action pin algorithm Dec 22, 2025
@pelikhan pelikhan marked this pull request as ready for review December 22, 2025 15:28
@pelikhan pelikhan merged commit f0db98b into dependabot/npm_and_yarn/dot-github/workflows/sentry/mcp-server-0.26.0 Dec 22, 2025
@pelikhan pelikhan deleted the copilot/sub-pr-7234 branch December 22, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants