Skip to content

Commit bdf0e23

Browse files
authored
fix(File): Read the cached_filings input, not cached_results (#12)
This PR updates the `core.getInput` call to match the `action.yml` (https://github.com/github/accessibility-scanner/blob/69cb82cdc3d9e37c418092e71af165108b31911c/.github/actions/file/action.yml#L14-L16), so results from previous runs are now available to the File sub-action. This ensures duplicate issues aren’t filed when the workflow re-runs.
2 parents 69cb82c + 4e07ed4 commit bdf0e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/file/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function () {
2121
const repoWithOwner = core.getInput("repository", { required: true });
2222
const token = core.getInput("token", { required: true });
2323
const cachedFilings: (ResolvedFiling | RepeatedFiling)[] = JSON.parse(
24-
core.getInput("cached_results", { required: false }) || "[]"
24+
core.getInput("cached_filings", { required: false }) || "[]"
2525
);
2626
core.debug(`Input: 'findings: ${JSON.stringify(findings)}'`);
2727
core.debug(`Input: 'repository: ${repoWithOwner}'`);

0 commit comments

Comments
 (0)