Skip to content

[pull] main from googleapis:main#206

Merged
pull[bot] merged 2 commits intoCrazyForks:mainfrom
googleapis:main
Mar 10, 2026
Merged

[pull] main from googleapis:main#206
pull[bot] merged 2 commits intoCrazyForks:mainfrom
googleapis:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 10, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

dishaprakash and others added 2 commits March 10, 2026 18:57
## Description

Due to a RCE Vulnerability, we can safely change the workflow to run on
pull_request while still maintaining it's run on PRs from forks.
Changes:
- Remove usage of pull_request_target
- Remove write permissions from the workflow as these workflows will
move from the labeled runs

## PR Checklist

> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [ ] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [ ] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose)
  before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [ ] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>
## Summary
- build request URLs by resolving validated relative paths against the
base URL
- reject path templates that attempt to set scheme/host/userinfo
- add regression tests for host-override attempts

## Testing
- go test ./internal/tools/http

Fixes #2616

Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Mar 10, 2026
@pull pull bot added the ⤵️ pull label Mar 10, 2026
@pull pull bot merged commit 3856913 into CrazyForks:main Mar 10, 2026
4 of 10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants