Skip to content

Add a check for local filesystem paths in report output - #145

Merged
abrignoni merged 1 commit into
mainfrom
feat/check-report-local-paths
Aug 25, 2026
Merged

Add a check for local filesystem paths in report output#145
abrignoni merged 1 commit into
mainfrom
feat/check-report-local-paths

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

The seeker stages evidence under the report folder, so a path taken from files_found is absolute on the machine that ran the tool. artifact_processor normalizes only the third element of the return tuple; a path placed in a data row or handed to the report writer is published as-is.

Nothing else catches it: the column is never empty and the row count is always right. The check reads artifact source and runs in the lint job.

No artifact here is affected. Added for parity with the iLEAPP and ALEAPP copies, which are byte-identical.

Reads artifact source and fails when a staged path reaches a data row or the
"located at" line of an artifact decorated with artifact_processor. Runs in the
lint job on any Python change.

The seeker stages evidence under <report folder>/data, so every files_found
entry is an absolute path on the machine running the tool. artifact_processor
normalizes only the third element of the return tuple; anything else is
published as-is.

Nothing else catches this: the column is never empty and the row count is always
right. Context.get_relative_path also fails open, and the committed test harness
never sets Context._data_folder, so in that harness a leaking artifact and a
correct one record identical output. That is why the check reads source rather
than a recorded baseline.

No artifact in this repo is affected; the check passes here as it stands. It is
added for parity with the iLEAPP and ALEAPP copies, which are byte-identical,
and to keep the idiom from arriving later.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit dd8779f into main Aug 25, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/check-report-local-paths branch August 25, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant