Skip to content

fix(action): Use relative findings output path#289

Merged
dcramer merged 2 commits intomainfrom
fix/findings-file-relative
May 5, 2026
Merged

fix(action): Use relative findings output path#289
dcramer merged 2 commits intomainfrom
fix/findings-file-relative

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 5, 2026

Write Warden's findings JSON to the GitHub Actions workspace and expose the action output as a repo-relative path.

The previous output pointed at an absolute RUNNER_TEMP path. Downstream upload actions that apply ignore rules can reject those absolute paths because their ignore processors expect repo-relative pathnames.

This also guards Warden's own gitignore filtering so absolute glob matches outside the repo are not passed into ignore().ignores().

Fixes #288

Write the findings artifact into the GitHub Actions workspace and expose the output as a repo-relative path. This keeps downstream upload actions from feeding absolute runner temp paths into ignore processors that expect relative paths.

Also skip gitignore matching for outside-repo glob results so Warden does not trigger the same ignore package path validation error locally.

Fixes #288
Co-Authored-By: GPT-5 <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review May 5, 2026 16:54
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2b2200b. Configure here.

Comment thread src/action/workflow/base.ts Outdated
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Move duplicate path normalization and repository-relative validation into the shared path utility. This keeps action findings output handling and CLI gitignore filtering on the same validation logic.

Co-Authored-By: GPT-5 <noreply@anthropic.com>
@dcramer dcramer merged commit 79cd5ab into main May 5, 2026
15 checks passed
@dcramer dcramer deleted the fix/findings-file-relative branch May 5, 2026 23:49
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.

Handle absolute temp paths in ignorePaths

1 participant