Skip to content

Fix Licensed CI failure: update .licenses records for @actions/cache v6 and @actions/core v3#4

Merged
HiGarfield merged 3 commits intomainfrom
copilot/fix-action-run-error
Mar 26, 2026
Merged

Fix Licensed CI failure: update .licenses records for @actions/cache v6 and @actions/core v3#4
HiGarfield merged 3 commits intomainfrom
copilot/fix-action-run-error

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 26, 2026

PR #3 upgraded @actions/cache (v4→v6) and @actions/core (v1→v3) with an ESM conversion, but omitted regenerating the .licenses dependency records — causing the Licensed CI check to fail with "cached dependency record out of date".

Changes

  • .licenses/npm/@actions/cache.dep.yml: version bumped 4.0.36.0.0 (regenerated via licensed cache)
  • .licenses/npm/@actions/core.dep.yml: version bumped 1.11.13.0.0 (regenerated via licensed cache)
  • Includes all code changes from PR Update @actions/cache and @actions/core to latest major versions #3 (package updates + CJS→ESM conversion) so the branch is self-consistent

Copilot AI and others added 3 commits March 26, 2026 16:51
@HiGarfield HiGarfield marked this pull request as ready for review March 26, 2026 16:55
Copilot AI review requested due to automatic review settings March 26, 2026 16:55
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@HiGarfield HiGarfield merged commit b9efe27 into main Mar 26, 2026
1 check passed
@HiGarfield HiGarfield deleted the copilot/fix-action-run-error branch March 26, 2026 16:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Licensed dependency records to match the earlier @actions/* upgrades while making the branch self-consistent with the ESM conversion.

Changes:

  • Regenerates .licenses records for @actions/cache@6.0.0 and @actions/core@3.0.0 to fix Licensed CI failures.
  • Converts fetch.js from CommonJS require to ESM import and updates the local import to include the .js extension.

Reviewed changes

Copilot reviewed 3 out of 5626 changed files in this pull request and generated 1 comment.

File Description
fetch.js Switches to ESM imports for GitHub Actions dependencies and local utils.
.licenses/npm/@actions/core.dep.yml Updates Licensed record to @actions/core@3.0.0.
.licenses/npm/@actions/cache.dep.yml Updates Licensed record to @actions/cache@6.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +4
import * as core from "@actions/core";
import { execSync } from "child_process";
import * as cache from "@actions/cache";
import { parseBooleanInput, buildBaseConfig } from "./utils.js";
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ESM import statements will throw a syntax/runtime error if fetch.js is still executed as CommonJS (e.g., no \"type\": \"module\" in package.json, or if the runtime expects CJS entrypoints). Ensure the action/package runtime explicitly runs this file as ESM (e.g., set \"type\": \"module\", rename to .mjs and update references, or add a build step that outputs CJS).

Suggested change
import * as core from "@actions/core";
import { execSync } from "child_process";
import * as cache from "@actions/cache";
import { parseBooleanInput, buildBaseConfig } from "./utils.js";
const core = require("@actions/core");
const { execSync } = require("child_process");
const cache = require("@actions/cache");
const { parseBooleanInput, buildBaseConfig } = require("./utils.js");

Copilot uses AI. Check for mistakes.
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.

3 participants