Skip to content

Commit ef3edf8

Browse files
committed
make all core imports * as core
1 parent 6efea39 commit ef3edf8

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/find/src/findForUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {AuthContext} from './AuthContext.js'
55
import {generateScreenshots} from './generateScreenshots.js'
66
import {loadPlugins, invokePlugin} from './pluginManager.js'
77
import {getScansContext} from './scansContextProvider.js'
8-
import core from '@actions/core'
8+
import * as core from '@actions/core'
99

1010
export async function findForUrl(
1111
url: string,

.github/actions/find/src/generateScreenshots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'node:fs'
22
import path from 'node:path'
33
import crypto from 'node:crypto'
44
import type {Page} from 'playwright'
5-
import core from '@actions/core'
5+
import * as core from '@actions/core'
66

77
// Use GITHUB_WORKSPACE to ensure screenshots are saved in the workflow workspace root
88
// where the artifact upload step can find them

.github/actions/find/src/pluginManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {fileURLToPath} from 'url'
44
import {dynamicImport} from './dynamicImport.js'
55
import type {Finding} from './types.d.js'
66
import playwright from 'playwright'
7-
import core from '@actions/core'
7+
import * as core from '@actions/core'
88

99
// Helper to get __dirname equivalent in ES Modules
1010
const __filename = fileURLToPath(import.meta.url)

.github/actions/find/src/scansContextProvider.ts

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

33
type ScansContext = {
44
scansToPerform: Array<string>

0 commit comments

Comments
 (0)