π Bug Report
The published tmbtech/multi-codeowners@v1 GitHub Action fails at runtime with a module resolution error, preventing code owner enforcement workflows from functioning.
π₯ Error Message
Error: Cannot find module '@actions/core'
Require stack:
- /home/runner/work/_actions/tmbtech/multi-codeowners/v1/dist/index.js
π Root Cause
The published v1 tag contains a dist/index.js file that attempts to require @actions/core at runtime, but this dependency was not properly bundled into the distribution.
Technical Details
- Missing Bundling Step: The action's build process should bundle all npm dependencies into the
dist/ directory using a tool like @vercel/ncc or webpack
- Runtime Dependency: In GitHub Actions environment, only the contents of the action's repository are available - npm packages are not installed automatically
- Distribution Mismatch: The published v1 tag contains unbundled JavaScript that expects
node_modules to be present
π Reproduction Steps
- Create any workflow using
tmbtech/multi-codeowners@v1
- Trigger the workflow on a pull request
- Observe runtime module resolution failure
π Evidence
- β
Unit tests pass - indicating the source code is functional
- β
Action builds successfully - confirming TypeScript compilation works
- β Runtime failure - only occurs when action executes in GitHub Actions environment
- β Missing bundled dependencies -
@actions/core and other npm packages not in distribution
π οΈ Suggested Solution
Immediate Fix
-
Rebuild distribution: Run the proper build pipeline with bundling
npm run build
npm run package # or equivalent bundling step using ncc/webpack
-
Publish fixed version: Release as v1.0.1 or v1.1.0
git add dist/
git commit -m "fix: bundle dependencies in distribution"
git tag v1.0.1
git push origin v1.0.1
Long-term Prevention
- Add bundling check to CI pipeline
- Test distribution in isolated environment before publishing
- Automate releases with proper build/bundle/test workflow
π Failing Examples
π Impact
Severity: High - Action completely non-functional
Status: π΄ Blocking all workflows using v1 tag
π‘ Workaround
We've created a temporary implementation in our test repo while waiting for the fix. Once resolved, we'll update to use the fixed upstream action.
Report Generated: 2025-08-29
π Bug Report
The published
tmbtech/multi-codeowners@v1GitHub Action fails at runtime with a module resolution error, preventing code owner enforcement workflows from functioning.π₯ Error Message
π Root Cause
The published
v1tag contains adist/index.jsfile that attempts to require@actions/coreat runtime, but this dependency was not properly bundled into the distribution.Technical Details
dist/directory using a tool like@vercel/nccor webpacknode_modulesto be presentπ Reproduction Steps
tmbtech/multi-codeowners@v1π Evidence
@actions/coreand other npm packages not in distributionπ οΈ Suggested Solution
Immediate Fix
Rebuild distribution: Run the proper build pipeline with bundling
npm run build npm run package # or equivalent bundling step using ncc/webpackPublish fixed version: Release as
v1.0.1orv1.1.0git add dist/ git commit -m "fix: bundle dependencies in distribution" git tag v1.0.1 git push origin v1.0.1Long-term Prevention
π Failing Examples
π Impact
Severity: High - Action completely non-functional
Status: π΄ Blocking all workflows using v1 tag
π‘ Workaround
We've created a temporary implementation in our test repo while waiting for the fix. Once resolved, we'll update to use the fixed upstream action.
Report Generated: 2025-08-29