Skip to content

The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.

ci(security): prevent shell injection via github.head_ref in Main PR Source

Shani Singhb0c8513dbbcf
diff --git a/.github/workflows/main-pr-source.yml b/.github/workflows/main-pr-source.yml
index e9002c8..97b7e8b 100644
--- a/.github/workflows/main-pr-source.yml
+++ b/.github/workflows/main-pr-source.yml
@@ -10,8 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Require dev branch
+ env:
+ HEAD_REF: ${{ github.head_ref }}
run: |
- if [ "${{ github.head_ref }}" != "dev" ]; then
+ if [ "$HEAD_REF" != "dev" ]; then
echo "Pull requests into main must come from the dev branch."
exit 1
fi