Skip to content

fix: pin installed version of @actions/tool-cache#52

Merged
DariuszPorowski merged 2 commits intoraven-actions:mainfrom
hghmn:fix/pin-tool-cache-version
Jan 30, 2026
Merged

fix: pin installed version of @actions/tool-cache#52
DariuszPorowski merged 2 commits intoraven-actions:mainfrom
hghmn:fix/pin-tool-cache-version

Conversation

@hghmn
Copy link
Contributor

@hghmn hghmn commented Jan 29, 2026

💌 Description

This change pins the installed version of @actions/tool-cache to major version 3.

The @actions/tool-cache package was recently converted to an ESM module: actions/toolkit#2274. This is incompatible with the usage of require in the actionlint script:

actionlint/action.yml

Lines 217 to 218 in 580b34e

// dependencies
const tc = require('@actions/tool-cache')

🔗 Related issue

Fixes: #51

📚 Type of change

  • 📝 Examples / docs / tutorials
  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🚨 Security fix
  • ⬆️ Dependencies update

✔️ Checklist

@hghmn hghmn requested a review from a team as a code owner January 29, 2026 22:42
@DariuszPorowski DariuszPorowski force-pushed the fix/pin-tool-cache-version branch from 79a2293 to cc631b3 Compare January 30, 2026 06:12
@DariuszPorowski DariuszPorowski merged commit 06dd51c into raven-actions:main Jan 30, 2026
4 of 5 checks passed
martimlobao added a commit to martimlobao/dotfiles that referenced this pull request Jan 30, 2026
- caused by unpinned deps (i thought this was the whole point of pinning versions??)
- see: raven-actions/actionlint#52
martimlobao added a commit to martimlobao/dotfiles that referenced this pull request Jan 30, 2026
- caused by unpinned deps (i thought this was the whole point of pinning
versions??)
- see: raven-actions/actionlint#52

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: only changes the GitHub Actions workflow dependency pin for
`actionlint`, affecting CI linting but not production code or runtime
behavior.
> 
> **Overview**
> **Fixes CI linting by bumping `actionlint`.** The `Lint PR` workflow
updates the pinned `raven-actions/actionlint` action from `v2.1.0` to
`v2.1.1` (new commit SHA) to address the broken prior version.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
6924328. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [bug]: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports"

2 participants