Commit Graph

123 Commits

Author SHA1 Message Date
Baptiste Arnaud
c549cec651
🐛 Fix PartyKit deploy workflow gate (#2500)
- Limit the PartyKit deploy workflow to pushes that change
`packages/partykit`.
- Remove the broken `turbo-ignore` gate and deploy through the Nx
target.
2026-05-21 15:11:51 +00:00
Baptiste Arnaud
b25c41b02b
🐛 Fix SSRF bypass via DNS rebinding in HTTP request and script fetch flows (#2461)
- Add `createSafeDispatcher` with a `validatingLookup` that checks
resolved IPs at TCP connection time, preventing DNS rebinding TOCTOU
attacks (GHSA-hgqq-whf5-mrrf)
- Pass the safe undici dispatcher in `safeFetchWithoutChunkedEncoding`
(`ky.ts`) and in the isolated VM fetch wrapper (`executeFunction.ts`)
- Export `parseIPAddress`, `validateIPAddress` and `ParsedIP` from
`validateHttpReqUrl.ts` for reuse in the dispatcher
- Add unit tests for `validatingLookup` and E2E test bot/spec for SSRF
scenarios
- Add `@types/bun` to `packages/lib` tsconfig

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 09:28:06 +00:00
Baptiste Arnaud
6b30ff38fe
🔧 Upgrade Claude Code GitHub Actions workflows (#2460)
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Deploy Workflows (Fly.io) / deploy (push) Has been cancelled
- Upgrade model from `claude-opus-4-5` to `claude-opus-4-6` in both
workflows
- Fix permissions from `read` to `write` for `contents`,
`pull-requests`, and `issues`
- Replace deprecated `plugin_marketplaces`/`plugins` with a direct
`prompt` in review workflow
- Add `synchronize` trigger to review on every push
- Add `--max-turns 5` to review workflow
- Remove redundant `additional_permissions` and unused comments

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 10:49:29 +02:00
Baptiste Arnaud
cf80f81f2c
🐛 Update WordPress embed default lib version from 0.3 to 0.x (#2438)
## Summary
- Update the default embed library version from `0.3` to `0.x` across
the WordPress plugin and builder instructions, so it auto-resolves to
the latest `0.x.x` via jsdelivr
- Update the lib_version validation regex to accept version ranges like
`0.x`

## Test plan
- [ ] Verify
`https://cdn.jsdelivr.net/npm/@typebot.io/js@0.x/dist/web.js` resolves
correctly
- [ ] Check WordPress admin panel shows `0.x` as default
- [ ] Verify builder Popup/Bubble instructions show `0.x` for cloud
users

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 10:24:39 +02:00
Baptiste Arnaud
2c3fc7267a
🐛 Fix stored XSS via javascript: URI in bubble links (GHSA-hqmv-v56g-4m47) (#2435)
## Summary
- Fix stored XSS vulnerability where `javascript:` URIs in text bubble
links, image click links, and toast popup links could execute arbitrary
JS in visitors' browsers
- Add `sanitizeUrl` utility that allowlists only `http:`, `https:`,
`mailto:`, and `tel:` protocols
- Add explicit `typecheck` Nx targets for `builder` and `viewer`
(Next.js projects don't get one inferred by `@nx/js/typescript`)
- Bump `@typebot.io/js` and `@typebot.io/react` to `0.10.1`

## Test plan
- [ ] Create a bot with a text bubble link set to `javascript:alert(1)`
and verify it renders as `#`
- [ ] Same test with an image click link
- [ ] Verify normal `https://` links still work
- [ ] Run `bunx nx typecheck builder` and `bunx nx typecheck viewer`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 17:46:09 +02:00
Baptiste Arnaud
c9422f661f
🔧 Add typecheck CI workflow for pull requests (#2433)
## Summary
- Adds a new GitHub Actions workflow that runs `bunx nx affected -t
typecheck` on every pull request
- Uses the PR base branch as the Nx affected comparison base for
accurate change detection
- Sets up Node 24 + Bun with full git history for proper affected
analysis

## Test plan
- [ ] Open a PR with a type error and verify the check fails
- [ ] Open a PR with no type errors and verify the check passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 17:09:32 +02:00
Baptiste Arnaud
a9b2af116d
🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
Baptiste Arnaud
d979db6b89
🐛 Fix GH crons and exportResults workflow send email 2026-03-18 18:55:37 +01:00
Baptiste Arnaud
7bb0a81ae5
🐛 Fix nx commands in cron GH workflows 2026-03-18 17:57:00 +01:00
Baptiste Arnaud
4628465ebd
🐛 Fix env missing in Github CI 2026-03-18 16:53:18 +01:00
Baptiste Arnaud
d802cd84c7
🔧 Force Node v24 on Github actions 2026-03-18 16:44:28 +01:00
Baptiste Arnaud
c2b251c7e5
♻️ Migrate to NX (#2418) 2026-03-18 15:29:32 +00:00
Baptiste Arnaud
126ca2c5c6
🔧 Migrate deprecated buildjet arm runner 2026-02-11 10:37:03 +01:00
Baptiste Arnaud
1e2e3f79c5
🔧 Auto-approve owner PRs (#2369)
Adds a workflow that auto-approves PRs authored by baptisteArno. Runs on
PR open/reopen/synchronize and skips drafts.
2026-01-25 08:01:58 +01:00
Baptiste Arnaud
982bf67b84
Add turborepo skill references and fix symlinks (#2368)
Adds the turborepo skill plus its reference docs. Updates agent symlinks
to be relative and adds a sync-agents-config script. No runtime behavior
changes beyond tooling.
2026-01-24 17:58:11 +01:00
Baptiste Arnaud
59684bed21
🔧 Add workflows deploy GH action 2026-01-22 18:24:44 +01:00
Baptiste Arnaud
e9cec09cba
🔧 Use export results Effect workflow (#2363) 2026-01-22 17:11:00 +01:00
Baptiste Arnaud
757b6db08e
🔧 Change default claude github model 2026-01-15 10:45:57 +01:00
Baptiste Arnaud
a9b78f418c
🔧 Add Claude Code GitHub Workflow (#2341)
## 🤖 Installing Claude Code GitHub App

This PR adds a GitHub Actions workflow that enables Claude Code
integration in our repository.

### What is Claude Code?

[Claude Code](https://claude.com/claude-code) is an AI coding agent that
can help with:
- Bug fixes and improvements  
- Documentation updates
- Implementing new features
- Code reviews and suggestions
- Writing tests
- And more!

### How it works

Once this PR is merged, we'll be able to interact with Claude by
mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and
surrounding context, and execute on the request in a GitHub action.

### Important Notes

- **This workflow won't take effect until this PR is merged**
- **@claude mentions won't work until after the merge is complete**
- The workflow runs automatically whenever Claude is mentioned in PR or
issue comments
- Claude gets access to the entire PR or issue context including files,
diffs, and previous comments

### Security

- Our Anthropic API key is securely stored as a GitHub Actions secret
- Only users with write access to the repository can trigger the
workflow
- All Claude runs are stored in the GitHub Actions run history
- Claude's default tools are limited to reading/writing files and
interacting with our repo by creating comments, branches, and commits.
- We can add more allowed tools by adding them to the workflow file
like:

```
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)
```

There's more information in the [Claude Code action
repo](https://github.com/anthropics/claude-code-action).

After merging this PR, let's try mentioning @claude in a comment on any
PR to get started!
2026-01-13 14:15:02 +01:00
Baptiste Arnaud
fa08d38a29
👷 Remove auto add to project GH action 2025-12-01 11:08:34 +01:00
Baptiste Arnaud
b9e6aac63c
👷 Add stale issue Github automation 2025-11-13 16:29:21 +01:00
Baptiste Arnaud
00cd3a35fe
💚 Fix mismatch bun version in Github actions 2025-10-14 19:21:34 +02:00
Baptiste Arnaud
2b5f51a9d7
🔧 Add churn agent daily script 2025-10-06 11:23:24 +02:00
Baptiste Arnaud
180ea8a988
⚰️ Remove HUGEICONS license key in GH actions workflows 2025-09-04 12:20:15 +02:00
Baptiste Arnaud
4193512f1c
🔧 Add hugeicons license key in github actions 2025-08-25 17:18:28 +02:00
Baptiste Arnaud
0cedd5019b
🔧 Add POSTHOG_PERSONAL_API_KEY to daily workflow secrets 2025-06-18 23:46:21 +02:00
Baptiste Arnaud
e2ccc7c26b
📈 Add landing page view tracking 2025-06-04 09:05:17 +02:00
Baptiste Arnaud
28c149c0c7
🧑‍💻 Make react package ssr compatible and deprecate nextjs package
Closes #1936
2025-05-22 12:05:40 +02:00
Baptiste Arnaud
553380ad38
💚 Update Docker Buildx setup in release workflow to use the latest buildkit version
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
2025-05-05 16:16:34 +02:00
Baptiste Arnaud
92c92f46c2
💚 Fix cache deprecated error on release workflow 2025-05-05 15:58:37 +02:00
Baptiste Arnaud
d32b6f8fa4
🔧 Update GitHub Actions workflow to use CONTENTS_RW_PAT for GITHUB_TOKEN 2025-05-02 17:26:27 +02:00
Baptiste Arnaud
a95364fadf
🔒️ Add necessary auto add project workflow PAT
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
2025-04-22 16:09:11 +02:00
Baptiste Arnaud
547ecac156
💚 Explicitely add GITHUB_TOKEN in auto tag workflow 2025-04-22 15:56:19 +02:00
Baptiste Arnaud
59627ab1d8
🔒️ Remove use of PAT in Github workflows 2025-04-22 15:53:52 +02:00
Baptiste Arnaud
d9e23c1d1b
👷 Add PostHog environment variables to daily workflow
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
2025-02-23 09:18:20 +01:00
Baptiste Arnaud
6e889ec14c
👷 Improve hourly results tracking and error handling 2025-02-22 15:32:21 +01:00
Baptiste Arnaud
1f3afb5460
👷 Auto retry hourly cron on failure 2025-02-20 15:40:06 +01:00
Baptiste Arnaud
b406f6c620
👷 Renovate cron jobs 2025-02-19 22:32:41 +01:00
Baptiste Arnaud
3080695c09
️ Revert invalid docker deploy workflow and fix the artifacts download merging 2025-02-04 12:48:10 +01:00
Baptiste Arnaud
e378996b71
💚 Update release workflow to support multi-arch Docker builds 2025-02-04 12:25:01 +01:00
Baptiste Arnaud
043e80cdd2
💚 Update actions/checkout to v4 2025-02-04 10:42:31 +01:00
Baptiste Arnaud
5c420fb806
🔧 Add DATABASE_URL_REPLICA env to github workflows 2025-01-27 19:54:29 +01:00
Baptiste Arnaud
f2836e91b1
docs: update README banner 2025-01-23 14:50:45 +01:00
Baptiste Arnaud
69bfa6cc08
👷 Use faster arm GH action vcp 2024-11-10 15:29:07 -06:00
Baptiste Arnaud
13c2dd51b6
🔧 Add npmrc file to authenticate properly for publishing 2024-10-09 08:40:34 +02:00
Baptiste Arnaud
cc7367f788
💚 Update bun to version 1.1.30 and use bun publish 2024-10-09 07:57:44 +02:00
Baptiste Arnaud
72e64aec00
💚 Consistent package.json fields accross workspace 2024-10-08 10:54:37 +02:00
Baptiste Arnaud
e47cffad58
💚 Fix exit code handling in partykit deploy action 2024-10-08 08:51:20 +02:00
Baptiste Arnaud
606a68ce20
💚 Fix error handling in deploy workflow and update condition for deploying PartyKit 2024-10-08 08:42:50 +02:00
Baptiste Arnaud
19a67a592d
💚 Fix partykit deploy ci 2024-10-07 14:32:08 +02:00