Skip to content

Commit 6ec467f

Browse files
authored
Bundle Dependabot NPM updates with ESM compatibility fixes for @actions/github v9 (#14512)
1 parent cba968e commit 6ec467f

6 files changed

Lines changed: 289 additions & 126 deletions

actions/setup/js/frontmatter_hash_github_api.test.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { describe, it, expect, beforeAll } from "vitest";
33
const path = require("path");
44
const fs = require("fs");
55
const { computeFrontmatterHash, createGitHubFileReader } = require("./frontmatter_hash_pure.cjs");
6-
const { getOctokit } = require("@actions/github");
76

87
/**
98
* Tests for frontmatter hash computation using GitHub's API to fetch real workflows.
@@ -345,6 +344,9 @@ describe("frontmatter_hash with GitHub API", () => {
345344
return;
346345
}
347346

347+
// Use dynamic import for ESM module compatibility
348+
const { getOctokit } = await import("@actions/github");
349+
348350
// Use real GitHub API client
349351
const octokit = getOctokit(token);
350352
const owner = "github";

0 commit comments

Comments
 (0)