Skip to content

Commit 189cfab

Browse files
Bump @actions/core from 2.0.0 to 3.0.0 (#59475)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Evan Bonsignori <evanabonsignori@gmail.com>
1 parent df7af05 commit 189cfab

File tree

13 files changed

+67
-26
lines changed

13 files changed

+67
-26
lines changed

.github/actions/labeler/labeler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* See function main in this file for documentation */
22

3-
import coreLib from '@actions/core'
3+
import * as coreLib from '@actions/core'
44
import { type Octokit } from '@octokit/rest'
55
import { CoreInject } from '@/links/scripts/action-injections'
66

eslint.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,19 @@ export default [
174174
},
175175
},
176176

177+
// Allow namespace imports for @actions/core (ESM-only in v3.0.0)
178+
{
179+
files: [
180+
'.github/actions/**/*.ts',
181+
'src/workflows/**/*.ts',
182+
'src/links/scripts/**/*.ts',
183+
'src/content-linter/scripts/**/*.ts',
184+
],
185+
rules: {
186+
'import/no-namespace': 'off',
187+
},
188+
},
189+
177190
// Ignored patterns
178191
// CodeQL scripts included because cocofix is install manually by the workflow
179192
{

package-lock.json

Lines changed: 41 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"walk-sync": "^4.0.1"
254254
},
255255
"devDependencies": {
256-
"@actions/core": "^2.0.0",
256+
"@actions/core": "^3.0.0",
257257
"@actions/github": "^8.0.1",
258258
"@axe-core/playwright": "^4.10.1",
259259
"@eslint/js": "^9.33.0",

src/assets/scripts/deleted-assets-pr-comment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import github from '@actions/github'
2-
import core from '@actions/core'
2+
import { setOutput } from '@actions/core'
33

44
const { GITHUB_TOKEN } = process.env
55
const context = github.context
@@ -16,7 +16,7 @@ if (import.meta.url.endsWith(process.argv[1])) {
1616
const headSHA = context.payload.pull_request?.head.sha
1717

1818
const markdown = await main({ owner, repo, baseSHA, headSHA })
19-
core.setOutput('markdown', markdown)
19+
setOutput('markdown', markdown)
2020
}
2121

2222
type MainArgs = {

src/content-linter/scripts/lint-report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { program } from 'commander'
22
import fs from 'fs'
3-
import coreLib from '@actions/core'
3+
import * as coreLib from '@actions/core'
44

55
import github from '@/workflows/github'
66
import { getEnvInputs } from '@/workflows/get-env-inputs'

src/data-directory/scripts/deleted-features-pr-comment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
import github from '@actions/github'
12-
import core from '@actions/core'
12+
import { setOutput } from '@actions/core'
1313
import { program } from 'commander'
1414

1515
const { GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env
@@ -27,7 +27,7 @@ if (GITHUB_REPOSITORY) {
2727
const headSHA = process.env.HEAD_SHA || context.payload.pull_request!.head.sha
2828

2929
const markdown = await main(owner, repo, baseSHA, headSHA)
30-
core.setOutput('markdown', markdown)
30+
setOutput('markdown', markdown)
3131
} else {
3232
program
3333
.description('Print a nice Markdown comment if there were features deleted in a PR.')

src/links/scripts/check-links-external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { uploadArtifact } from '@/links/scripts/upload-artifact'
3232
import { createReportIssue, linkReports } from '@/workflows/issue-report'
3333
import github from '@/workflows/github'
3434
import excludedLinks from '@/links/lib/excluded-links'
35-
import coreLib from '@actions/core'
35+
import * as coreLib from '@actions/core'
3636

3737
// Cache configuration
3838
const CACHE_FILE = process.env.EXTERNAL_LINK_CACHE_FILE || 'external-link-cache.json'

src/links/scripts/check-links-internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { createReportIssue, linkReports } from '@/workflows/issue-report'
4242
import github from '@/workflows/github'
4343
import excludedLinks from '@/links/lib/excluded-links'
4444
import type { Page, Permalink, Context } from '@/types'
45-
import coreLib from '@actions/core'
45+
import * as coreLib from '@actions/core'
4646

4747
// Create a set for fast lookups of excluded links
4848
const excludedLinksSet = new Set(excludedLinks.map(({ is }) => is).filter(Boolean))

src/workflows/check-content-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import coreLib from '@actions/core'
1+
import * as coreLib from '@actions/core'
22

33
import { checkContentType } from '@/workflows/fm-utils'
44

0 commit comments

Comments
 (0)