Skip to content

Commit 441aabb

Browse files
committed
remove 'includeScreenshots' argument override in the 'addFinding' function
- update 'Finding' type to include missing fields
1 parent 4056403 commit 441aabb

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs'
22
import * as path from 'path'
33
import {fileURLToPath} from 'url'
44
import {dynamicImport} from './dynamicImport.js'
5-
import type {FindingWithContext} from './types.d.js'
5+
import type {Finding} from './types.d.js'
66
import playwright from 'playwright'
77
import * as core from '@actions/core'
88

@@ -12,7 +12,7 @@ const __dirname = path.dirname(__filename)
1212

1313
type PluginDefaultParams = {
1414
page: playwright.Page
15-
addFinding: (findingData: FindingWithContext) => void
15+
addFinding: (findingData: Finding) => void
1616
// - this will be coming soon
1717
// runAxeScan: (options: {includeScreenshots: boolean; page: playwright.Page; findings: Finding[]}) => Promise<void>
1818
}

.github/actions/find/src/types.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
export type Finding = {
2+
scannerType: string
23
url: string
34
html: string
45
problemShort: string
56
problemUrl: string
67
solutionShort: string
78
solutionLong?: string
89
screenshotId?: string
10+
ruleId: string
911
}
1012

11-
// export type FindingWithContext = Finding & {
12-
// scannerType: string
13-
// ruleId?: string
14-
// }
15-
1613
export type Cookie = {
1714
name: string
1815
value: string

0 commit comments

Comments
 (0)