Skip to content

Resolve project trust plugin paths against the project cwd - #513

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6707-resolve-project-trust-plugin-paths-against-the-project-cwd
Aug 22, 2026
Merged

Resolve project trust plugin paths against the project cwd#513
TheGreatAxios merged 1 commit into
mainfrom
cl-6707-resolve-project-trust-plugin-paths-against-the-project-cwd

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Relative trustedPluginPaths grants and the trust/is-trusted APIs resolved paths via process.cwd() instead of the project cwd argument, letting a confused-cwd bind a grant to the wrong tree. Non-absolute store entries are now dropped on load and relative inputs resolve against the caller's project cwd, mirroring path-trust.ts's approach.

Fixes CL-6707
https://linear.app/abklabs/issue/CL-6707

Relative trustedPluginPaths entries and isPluginTrusted/trustPlugin
inputs were resolved via process.cwd(), the confused-cwd bug
path-trust.ts already guards against. Non-absolute store entries are
now dropped on load, and trust/is-trusted resolve relative paths
against the caller's project cwd argument instead.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6707

@TheGreatAxios
TheGreatAxios merged commit 1b22fa2 into main Aug 22, 2026
3 of 4 checks passed
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