Skip to content

Add CI workflow for running tests#4

Closed
tusharmath wants to merge 1 commit intomainfrom
tusharmath/add-ci-workflow
Closed

Add CI workflow for running tests#4
tusharmath wants to merge 1 commit intomainfrom
tusharmath/add-ci-workflow

Conversation

@tusharmath
Copy link
Copy Markdown
Collaborator

@tusharmath tusharmath commented Dec 16, 2024


For more details, open the Copilot Workspace session.

Comment thread ci.rs
}

println!("Tests passed");
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

delete this file.

@tusharmath tusharmath closed this Dec 17, 2024
@amitksingh1490 amitksingh1490 deleted the tusharmath/add-ci-workflow branch October 1, 2025 14:53
xihale added a commit to xihale/forgecode that referenced this pull request Apr 26, 2026
- Fix path traversal bypass in validate_hook_path_for_delete: add
  lexical normalization to resolve `..` components before the
  starts_with check (tailcallhq#1)
- Ensure validate_hook_path_for_delete returns paths relative to the
  non-canonical base, so relative_hook_path() can strip the prefix
  correctly even when HOME is a symlink (tailcallhq#6)
- Upgrade PreparedHook::prepare() failure from debug! to warn! so
  users are alerted when trusted hooks fail to load (tailcallhq#2)
- Replace 3-tuple return in resolve_and_validate_hook_path with a
  named ResolvedHook struct for readability (tailcallhq#4)
- Use structured logging fields (path + error) in TrustStore::load()
  warning instead of inline format string (tailcallhq#5)

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
xihale added a commit to xihale/forgecode that referenced this pull request Apr 26, 2026
- Replace unwrap_or fallback with expect() in validate_hook_path_for_delete
  traversal check — strip_prefix cannot fail unless there is a logic bug,
  and the fallback silently bypassed the security check (tailcallhq#1)
- Fix relative_hook_path to fall back to canonical base when the input
  path is canonicalized (e.g. validate_hook_path returns a canonical path
  but HOME is a symlink) — prevents storing absolute-path keys in the
  trust store (tailcallhq#2)
- Move ResolvedHook struct to module level for better reusability (tailcallhq#4)

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
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