The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
security: harden CI against supply-chain attacks (#20476)
neo773565995e715d5
diff --git a/.cursor/rules/github-actions-security.mdc b/.cursor/rules/github-actions-security.mdcnew file mode 100644index 00000000000..f289026be94--- /dev/null+++ b/.cursor/rules/github-actions-security.mdc@@ -0,0 +1,72 @@+---+description: GitHub Actions security guidelines for supply chain protection+globs: **/.github/**/*.yml, **/.github/**/*.yaml+alwaysApply: false+---++# GitHub Actions Security++## Pin Third-Party Actions to Commit SHAs++Always reference external actions and reusable workflows by their full commit SHA, never by a mutable tag or branch. Tags can be force-pushed by a compromised maintainer account.++```yaml+# ❌ Mutable tag — vulnerable to supply chain attacks+uses: actions/checkout@v4+uses: actions/setup-node@v4++# ✅ Pinned to commit SHA with tag comment for readability+uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1+uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0+```++## Prefer `gh api` Over Third-Party Dispatch Actions++For repository dispatch calls, use `gh api` directly instead of third-party actions like `peter-evans/repository-dispatch`. This eliminates a supply-chain dependency entirely.++```yaml+# ✅ Use env vars + bracket notation to prevent injection+- name: Dispatch to target repo+ env:+ GH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}+ PR_NUMBER: ${{ github.event.pull_request.number }}+ BRANCH: ${{ github.event.workflow_run.head_branch }}+ run: |+ gh api repos/org/repo/dispatches \+ -f event_type=my-event \+ -f "client_payload[pr_number]=$PR_NUMBER" \+ -f "client_payload[branch]=$BRANCH"++# ✅ Simple dispatch without payload+- name: Trigger workflow+ env:+ GH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}+ run: |+ gh api repos/org/repo/dispatches -f event_type=my-event++# ❌ Third-party action dependency+- uses: peter-evans/repository-dispatch@v2+ with:+ token: ${{ secrets.DISPATCH_TOKEN }}+ repository: org/repo+ event-type: my-event++# ❌ Inline ${{ }} in shell — vulnerable to injection+- run: |+ gh api repos/org/repo/dispatches --input - <<EOF+ {"event_type": "x", "client_payload": {"branch": "${{ github.head_ref }}"}}+ EOF+```++## Minimal Permissions++Always declare explicit `permissions` at the job level with the least privilege required. Never rely on the default `GITHUB_TOKEN` permissions.++```yaml+# ✅ Explicit minimal permissions+permissions:+ contents: read++# ❌ Overly broad or implicit permissions+permissions: write-all+```diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSnew file mode 100644index 00000000000..d1411a274df--- /dev/null+++ b/.github/CODEOWNERS@@ -0,0 +1,6 @@+/.github/ @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrp+/.github/CODEOWNERS @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrp+/.github/workflows/ @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrp+/.github/actions/ @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrp+/.github/dependabot.yml @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrp+/.yarnrc.yml @charlesBochet @FelixMalfait @Weiko @prastoin @bosiraphael @etiennejouan @ijreilly @martmull @thomtrpdiff --git a/.github/actions/deploy-twenty-app/action.yml b/.github/actions/deploy-twenty-app/action.ymlindex 8ff4203b60f..6f8a1030d25 100644--- a/.github/actions/deploy-twenty-app/action.yml+++ b/.github/actions/deploy-twenty-app/action.yml@@ -21,7 +21,7 @@ runs:run: corepack enable- name: Setup Node.js- uses: actions/setup-node@v4+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0with:node-version-file: '${{ inputs.app-path }}/.nvmrc'cache: yarndiff --git a/.github/actions/install-twenty-app/action.yml b/.github/actions/install-twenty-app/action.ymlindex e1c8de33553..bf96a16c004 100644--- a/.github/actions/install-twenty-app/action.yml+++ b/.github/actions/install-twenty-app/action.yml@@ -21,7 +21,7 @@ runs:run: corepack enable- name: Setup Node.js- uses: actions/setup-node@v4+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0with:node-version-file: '${{ inputs.app-path }}/.nvmrc'cache: yarndiff --git a/.github/actions/nx-affected/action.yaml b/.github/actions/nx-affected/action.yamlindex d2d87719221..e380feb5ecb 100644--- a/.github/actions/nx-affected/action.yaml+++ b/.github/actions/nx-affected/action.yaml@@ -20,7 +20,7 @@ runs:run: git fetch origin main --depth=1- name: Get last successful commitif: env.NX_BASE == ''- uses: nrwl/nx-set-shas@v4+ uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4- name: Fallback to origin/main if no base foundif: env.NX_BASE == ''shell: bashdiff --git a/.github/actions/restore-cache/action.yaml b/.github/actions/restore-cache/action.yamlindex 16955dd1407..5b4320ae31a 100644--- a/.github/actions/restore-cache/action.yaml+++ b/.github/actions/restore-cache/action.yaml@@ -25,7 +25,7 @@ runs:run: |echo "CACHE_PRIMARY_KEY_PREFIX=v4-${CACHE_KEY}-${REF_NAME}" >> "${GITHUB_OUTPUT}"- name: Restore cache- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (restore)id: restore-cachewith:key: ${{ steps.cache-primary-key-builder.outputs.CACHE_PRIMARY_KEY_PREFIX }}-${{ github.sha }}diff --git a/.github/actions/save-cache/action.yaml b/.github/actions/save-cache/action.yamlindex 6ef14fe5300..87968a44425 100644--- a/.github/actions/save-cache/action.yaml+++ b/.github/actions/save-cache/action.yaml@@ -9,8 +9,11 @@ inputs:runs:using: "composite"steps:+ # Fork PRs on pull_request already can't write to the base repo's cache (GitHub built-in).+ # The fork guard is defense-in-depth for pull_request_target, which does have write access.- name: Save cache- uses: actions/cache/save@v4+ if: ${{ format('{0}', github.event.pull_request.head.repo.fork) != 'true' }}+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (save)with:key: ${{ inputs.key }}path: |diff --git a/.github/actions/spawn-twenty-docker-image/action.yaml b/.github/actions/spawn-twenty-docker-image/action.yamlindex b0e268ca5ec..54b8ba42265 100644--- a/.github/actions/spawn-twenty-docker-image/action.yaml+++ b/.github/actions/spawn-twenty-docker-image/action.yaml@@ -48,7 +48,7 @@ runs:fi- name: Checkout docker compose files- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:repository: ${{ inputs.twenty-repository }}ref: ${{ steps.resolve.outputs.git-ref }}diff --git a/.github/actions/yarn-install/action.yaml b/.github/actions/yarn-install/action.yamlindex 35b8a71d390..49f0065d11b 100644--- a/.github/actions/yarn-install/action.yaml+++ b/.github/actions/yarn-install/action.yaml@@ -29,12 +29,12 @@ runs:echo "packages/*/node_modules" >> $GITHUB_OUTPUTecho 'EOF' >> $GITHUB_OUTPUT- name: Setup Node.js and get yarn cache- uses: actions/setup-node@v4+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0with:node-version: ${{ inputs.node-version }}- name: Restore node_modulesid: cache-node-modules- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (restore)with:key: v4-${{ steps.globals.outputs.CACHE_KEY_PREFIX }}-${{github.sha}}restore-keys: v4-${{ steps.globals.outputs.CACHE_KEY_PREFIX }}-@@ -44,10 +44,13 @@ runs:shell: ${{ steps.globals.outputs.ACTION_SHELL }}run: |yarn config set enableHardenedMode true+ yarn config set enableScripts falseyarn --immutable --check-cache+ # Fork PRs on pull_request already can't write to the base repo's cache (GitHub built-in).+ # The fork guard is defense-in-depth for pull_request_target, which does have write access.- name: Save cache- if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' }}- uses: actions/cache/save@v4+ if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' && format('{0}', github.event.pull_request.head.repo.fork) != 'true' }}+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (save)with:key: ${{ steps.cache-node-modules.outputs.cache-primary-key }}path: ${{ steps.globals.outputs.PATH_TO_CACHE }}diff --git a/.github/workflows/cd-deploy-main.yaml b/.github/workflows/cd-deploy-main.yamlindex 7fe62465b14..9c3213f9978 100644--- a/.github/workflows/cd-deploy-main.yaml+++ b/.github/workflows/cd-deploy-main.yaml@@ -14,9 +14,8 @@ jobs:runs-on: ubuntu-lateststeps:- name: Repository Dispatch- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: auto-deploy-main- client-payload: '{"github": ${{ toJson(github) }}}' # Passes the entire github context to the downstream workflow+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches \+ -f event_type=auto-deploy-maindiff --git a/.github/workflows/cd-deploy-tag.yaml b/.github/workflows/cd-deploy-tag.yamlindex 3c1608b38c5..360cf0a35d5 100644--- a/.github/workflows/cd-deploy-tag.yaml+++ b/.github/workflows/cd-deploy-tag.yaml@@ -14,9 +14,10 @@ jobs:runs-on: ubuntu-lateststeps:- name: Repository Dispatch- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: auto-deploy-tag- client-payload: '{"github": ${{ toJson(github) }}}' # Passes the entire github context to the downstream workflow+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ REF_NAME: ${{ github.ref_name }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches \+ -f event_type=auto-deploy-tag \+ -f "client_payload[github][ref_name]=$REF_NAME"diff --git a/.github/workflows/changed-files.yaml b/.github/workflows/changed-files.yamlindex c74cb6130ab..397953483ab 100644--- a/.github/workflows/changed-files.yaml+++ b/.github/workflows/changed-files.yaml@@ -21,11 +21,11 @@ jobs:any_changed: ${{ steps.changed-files.outputs.any_changed }}steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Check for changed filesid: changed-files- uses: tj-actions/changed-files@v45+ uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.9with:files: ${{ inputs.files }}diff --git a/.github/workflows/ci-ai-catalog-sync.yaml b/.github/workflows/ci-ai-catalog-sync.yamlindex 0da151494af..d30f5ded59d 100644--- a/.github/workflows/ci-ai-catalog-sync.yaml+++ b/.github/workflows/ci-ai-catalog-sync.yaml@@ -17,7 +17,7 @@ jobs:NODE_OPTIONS: '--max-old-space-size=4096'steps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:ref: main@@ -41,7 +41,7 @@ jobs:- name: Create pull requestif: steps.changes.outputs.changed == 'true'- uses: peter-evans/create-pull-request@v7+ uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.6with:token: ${{ secrets.GITHUB_TOKEN }}commit-message: 'chore: sync AI model catalog from models.dev'@@ -61,8 +61,7 @@ jobs:- name: Trigger automergeif: steps.changes.outputs.changed == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: automated-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=automated-pr-readydiff --git a/.github/workflows/ci-breaking-changes.yaml b/.github/workflows/ci-breaking-changes.yamlindex fe1c4c27c26..7f094b3778a 100644--- a/.github/workflows/ci-breaking-changes.yaml+++ b/.github/workflows/ci-breaking-changes.yaml@@ -66,7 +66,7 @@ jobs:steps:- name: Checkout current branch- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10@@ -634,7 +634,7 @@ jobs:- name: Upload breaking changes reportif: always()- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: breaking-changes-reportpath: |diff --git a/.github/workflows/ci-create-app-e2e-hello-world.yaml b/.github/workflows/ci-create-app-e2e-hello-world.yamlindex 59038ce1293..8623c5404d4 100644--- a/.github/workflows/ci-create-app-e2e-hello-world.yaml+++ b/.github/workflows/ci-create-app-e2e-hello-world.yaml@@ -57,7 +57,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10diff --git a/.github/workflows/ci-create-app-e2e-minimal.yaml b/.github/workflows/ci-create-app-e2e-minimal.yamlindex f8126a333e2..3a9bf1461e3 100644--- a/.github/workflows/ci-create-app-e2e-minimal.yaml+++ b/.github/workflows/ci-create-app-e2e-minimal.yaml@@ -55,7 +55,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10diff --git a/.github/workflows/ci-create-app-e2e-postcard.yaml b/.github/workflows/ci-create-app-e2e-postcard.yamlindex d8f05f76b17..01b717387fa 100644--- a/.github/workflows/ci-create-app-e2e-postcard.yaml+++ b/.github/workflows/ci-create-app-e2e-postcard.yaml@@ -57,7 +57,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10diff --git a/.github/workflows/ci-create-app.yaml b/.github/workflows/ci-create-app.yamlindex ee2512eb6cf..02295d638bf 100644--- a/.github/workflows/ci-create-app.yaml+++ b/.github/workflows/ci-create-app.yaml@@ -30,12 +30,8 @@ jobs:matrix:task: [lint, typecheck, test]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yamlindex 8ae32921d6e..0c5d28e5629 100644--- a/.github/workflows/ci-docs.yaml+++ b/.github/workflows/ci-docs.yaml@@ -28,13 +28,8 @@ jobs:timeout-minutes: 10runs-on: ubuntu-lateststeps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}-- name: Fetch local actions- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yamlindex f46cdf85b5b..d6ed4c2608b 100644--- a/.github/workflows/ci-emails.yaml+++ b/.github/workflows/ci-emails.yaml@@ -28,7 +28,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-example-app-hello-world.yaml b/.github/workflows/ci-example-app-hello-world.yamlindex f0f5240cf4e..1a9fb48e90b 100644--- a/.github/workflows/ci-example-app-hello-world.yaml+++ b/.github/workflows/ci-example-app-hello-world.yaml@@ -54,7 +54,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Install dependenciesuses: ./.github/actions/yarn-installdiff --git a/.github/workflows/ci-example-app-postcard.yaml b/.github/workflows/ci-example-app-postcard.yamlindex da9dd22262e..28aaeac914a 100644--- a/.github/workflows/ci-example-app-postcard.yaml+++ b/.github/workflows/ci-example-app-postcard.yaml@@ -54,7 +54,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Install dependenciesuses: ./.github/actions/yarn-installdiff --git a/.github/workflows/ci-front-component-renderer.yaml b/.github/workflows/ci-front-component-renderer.yamlindex 6ea171e1674..74ebcb7d8be 100644--- a/.github/workflows/ci-front-component-renderer.yaml+++ b/.github/workflows/ci-front-component-renderer.yaml@@ -32,12 +32,8 @@ jobs:matrix:task: [build, typecheck, lint]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -50,12 +46,8 @@ jobs:timeout-minutes: 30runs-on: ubuntu-lateststeps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -63,7 +55,7 @@ jobs:- name: Build storybookrun: npx nx storybook:build twenty-front-component-renderer- name: Upload storybook build- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: storybook-twenty-front-component-rendererpath: packages/twenty-front-component-renderer/storybook-static@@ -76,7 +68,7 @@ jobs:STORYBOOK_URL: http://localhost:6008steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -84,7 +76,7 @@ jobs:- name: Build dependenciesrun: npx nx build twenty-sdk- name: Download storybook build- uses: actions/download-artifact@v4+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0with:name: storybook-twenty-front-component-rendererpath: packages/twenty-front-component-renderer/storybook-staticdiff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yamlindex 9bbb8e0ea54..b06fddeb5b2 100644--- a/.github/workflows/ci-front.yaml+++ b/.github/workflows/ci-front.yaml@@ -38,12 +38,8 @@ jobs:env:REACT_APP_SERVER_BASE_URL: http://localhost:3000steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch local actions- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -55,7 +51,7 @@ jobs:- name: Front / Build storybookrun: npx nx storybook:build twenty-front- name: Upload storybook build- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: storybook-staticpath: packages/twenty-front/storybook-static@@ -79,7 +75,7 @@ jobs:STORYBOOK_URL: http://localhost:6006steps:- name: Fetch local actions- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -96,7 +92,7 @@ jobs:npx nx build twenty-uinpx nx build twenty-front-component-renderer- name: Download storybook build- uses: actions/download-artifact@v4+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0with:name: storybook-staticpath: packages/twenty-front/storybook-static@@ -121,7 +117,7 @@ jobs:# exit 1# fi# - name: Upload coverage artifact- # uses: actions/upload-artifact@v4+ # uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2# with:# retention-days: 1# name: coverage-artifacts-${{ matrix.storybook_scope }}-${{ github.run_id }}-${{ matrix.shard }}@@ -136,12 +132,12 @@ jobs:# matrix:# storybook_scope: [modules, pages, performance]# steps:- # - uses: actions/checkout@v4+ # - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1# with:# fetch-depth: 10# - name: Install dependencies# uses: ./.github/actions/yarn-install- # - uses: actions/download-artifact@v4+ # - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0# with:# pattern: coverage-artifacts-${{ matrix.storybook_scope }}-${{ github.run_id }}-*# merge-multiple: true@@ -164,12 +160,8 @@ jobs:matrix:task: [lint, typecheck, test]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -203,12 +195,8 @@ jobs:NODE_OPTIONS: "--max-old-space-size=10240"ANALYZE: "true"steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -218,7 +206,7 @@ jobs:- name: Build frontendrun: npx nx build twenty-front# - name: Upload frontend build artifact- # uses: actions/upload-artifact@v4+ # uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2# with:# name: frontend-build# path: packages/twenty-front/builddiff --git a/.github/workflows/ci-merge-queue.yaml b/.github/workflows/ci-merge-queue.yamlindex dc27c51ad2f..6a63f3273c1 100644--- a/.github/workflows/ci-merge-queue.yaml+++ b/.github/workflows/ci-merge-queue.yaml@@ -41,11 +41,11 @@ jobs:ports:- 6379:6379steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- - uses: actions/setup-node@v4+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0with:node-version: lts/*@@ -53,7 +53,7 @@ jobs:uses: ./.github/actions/yarn-install- name: Restore Nx build cache- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (restore)with:key: v4-e2e-build-${{ github.ref_name }}-${{ github.sha }}restore-keys: |@@ -83,7 +83,7 @@ jobs:- name: Save Nx build cacheif: always()- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 (save)with:key: v4-e2e-build-${{ github.ref_name }}-${{ github.sha }}path: |@@ -119,7 +119,7 @@ jobs:- name: Upload Playwright resultsif: always()- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: playwright-resultspath: |diff --git a/.github/workflows/ci-release-create.yaml b/.github/workflows/ci-release-create.yamlindex 2e1ff43dc0f..19f2da073d3 100644--- a/.github/workflows/ci-release-create.yaml+++ b/.github/workflows/ci-release-create.yaml@@ -28,7 +28,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:ref: ${{ github.event.inputs.ref }}@@ -47,7 +47,7 @@ jobs:printf '%s\n' "$VERSION" > version.txt- name: Create Pull Request- uses: peter-evans/create-pull-request@v6+ uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0with:branch: release/${{ steps.sanitize.outputs.version }}commit-message: "chore: release v${{ steps.sanitize.outputs.version }}"diff --git a/.github/workflows/ci-release-merge.yaml b/.github/workflows/ci-release-merge.yamlindex a398fc96a9d..91b58523f98 100644--- a/.github/workflows/ci-release-merge.yaml+++ b/.github/workflows/ci-release-merge.yaml@@ -30,7 +30,7 @@ jobs:fi- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:ref: main@@ -55,7 +55,7 @@ jobs:git tag "v${{ env.VERSION }}"git push origin "v${{ env.VERSION }}"- - uses: release-drafter/release-drafter@v5+ - uses: release-drafter/release-drafter@09c613e259eb8d4e7c81c2cb00618eb5fc4575a7 # v5if: contains(github.event.pull_request.labels.*.name, 'create_release')env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/ci-sdk.yaml b/.github/workflows/ci-sdk.yamlindex 699a8e67172..938161b8c73 100644--- a/.github/workflows/ci-sdk.yaml+++ b/.github/workflows/ci-sdk.yaml@@ -30,12 +30,8 @@ jobs:matrix:task: [lint, typecheck, test:unit, test:integration]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -74,7 +70,7 @@ jobs:TWENTY_API_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ1c2VySWQiOiIyMDIwMjAyMC1lNmI1LTQ2ODAtOGEzMi1iODIwOTczNzE1NmIiLCJ3b3Jrc3BhY2VJZCI6IjIwMjAyMDIwLTFjMjUtNGQwMi1iZjI1LTZhZWNjZjdlYTQxOSIsIndvcmtzcGFjZU1lbWJlcklkIjoiMjAyMDIwMjAtNDYzZi00MzViLTgyOGMtMTA3ZTAwN2EyNzExIiwidXNlcldvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWU3Yy00M2Q5LWE1ZGItNjg1YjUwNjlkODE2IiwidHlwZSI6IkFDQ0VTUyIsImF1dGhQcm92aWRlciI6InBhc3N3b3JkIiwiaWF0IjoxNzUxMjgxNzA0LCJleHAiOjIwNjY4NTc3MDR9.HMGqCsVlOAPVUBhKSGlD1X86VoHKt4LIUtET3CGIdiksteps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex 4a39bb1b2ce..1c119955ad3 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -37,7 +37,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -65,7 +65,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -83,12 +83,12 @@ jobs:runs-on: ubuntu-lateststeps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Get changed upgrade-version-command filesid: changed-files- uses: tj-actions/changed-files@v45+ uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.9with:files: |packages/twenty-server/src/database/commands/upgrade-version-command/**@@ -178,7 +178,7 @@ jobs:- 6379:6379steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -278,7 +278,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -341,7 +341,7 @@ jobs:SHARD_COUNTER: 10steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-shared.yaml b/.github/workflows/ci-shared.yamlindex 73a4735d1fb..e2af8d9eb87 100644--- a/.github/workflows/ci-shared.yaml+++ b/.github/workflows/ci-shared.yaml@@ -29,12 +29,8 @@ jobs:matrix:task: [lint, typecheck, test]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-test-docker-compose.yaml b/.github/workflows/ci-test-docker-compose.yamlindex d2575f61360..705097814cf 100644--- a/.github/workflows/ci-test-docker-compose.yaml+++ b/.github/workflows/ci-test-docker-compose.yaml@@ -26,9 +26,9 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Login to Docker Hub- uses: docker/login-action@v3+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0with:username: ${{ vars.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_PASSWORD }}@@ -101,9 +101,9 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Login to Docker Hub- uses: docker/login-action@v3+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0with:username: ${{ vars.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_PASSWORD }}diff --git a/.github/workflows/ci-ui.yaml b/.github/workflows/ci-ui.yamlindex 1d0ca60bfb9..f2adaa6c547 100644--- a/.github/workflows/ci-ui.yaml+++ b/.github/workflows/ci-ui.yaml@@ -30,12 +30,8 @@ jobs:matrix:task: [lint, typecheck, test]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -48,12 +44,8 @@ jobs:timeout-minutes: 30runs-on: ubuntu-lateststeps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -61,7 +53,7 @@ jobs:- name: Build storybookrun: npx nx storybook:build twenty-ui- name: Upload storybook build- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: storybook-twenty-uipath: packages/twenty-ui/storybook-static@@ -74,7 +66,7 @@ jobs:STORYBOOK_URL: http://localhost:6007steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -82,7 +74,7 @@ jobs:- name: Build dependenciesrun: npx nx build twenty-shared- name: Download storybook build- uses: actions/download-artifact@v4+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0with:name: storybook-twenty-uipath: packages/twenty-ui/storybook-staticdiff --git a/.github/workflows/ci-utils.yaml b/.github/workflows/ci-utils.yamlindex 70b7312d42b..f297bb12a1e 100644--- a/.github/workflows/ci-utils.yaml+++ b/.github/workflows/ci-utils.yaml@@ -25,7 +25,7 @@ jobs:runs-on: ubuntu-latestif: github.event.action != 'closed'steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Install dependenciesuses: ./.github/actions/yarn-install- name: Utils / Run Danger.js@@ -38,7 +38,7 @@ jobs:runs-on: ubuntu-latestif: github.event.action == 'closed' && github.event.pull_request.merged == truesteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1- name: Install dependenciesuses: ./.github/actions/yarn-install- name: Run congratulate-dangerfile.jsdiff --git a/.github/workflows/ci-website.yaml b/.github/workflows/ci-website.yamlindex 85b7ba1e136..74ba02becf7 100644--- a/.github/workflows/ci-website.yaml+++ b/.github/workflows/ci-website.yaml@@ -32,12 +32,8 @@ jobs:matrix:task: [lint, typecheck, test]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/ci-zapier.yaml b/.github/workflows/ci-zapier.yamlindex 937a3d401cc..2b3bc56fefe 100644--- a/.github/workflows/ci-zapier.yaml+++ b/.github/workflows/ci-zapier.yaml@@ -46,7 +46,7 @@ jobs:- 6379:6379steps:- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependencies@@ -97,12 +97,8 @@ jobs:matrix:task: [lint, typecheck, validate]steps:- - name: Cancel Previous Runs- uses: styfle/[email protected]- with:- access_token: ${{ github.token }}- name: Fetch custom Github Actions and base branch history- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 10- name: Install dependenciesdiff --git a/.github/workflows/claude.yml b/.github/workflows/claude.ymlindex 46dfd7a2d2e..137831d2b2e 100644--- a/.github/workflows/claude.yml+++ b/.github/workflows/claude.yml@@ -8,10 +8,12 @@ on:pull_request_review:types: [submitted]issues:- types: [opened, assigned]+ types: [opened]repository_dispatch:types: [claude-core-team-issues]+permissions: {}+concurrency:group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.event.client_payload.issue_number }}cancel-in-progress: false@@ -19,17 +21,36 @@ concurrency:jobs:claude:if: |- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && github.event.comment.user.type != 'Bot') ||- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && github.event.comment.user.type != 'Bot') ||- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && github.event.review.user.type != 'Bot') ||- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))+ (+ github.event_name == 'issue_comment' &&+ contains(github.event.comment.body, '@claude') &&+ github.event.comment.user.type != 'Bot' &&+ contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)+ ) ||+ (+ github.event_name == 'pull_request_review_comment' &&+ contains(github.event.comment.body, '@claude') &&+ github.event.comment.user.type != 'Bot' &&+ contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)+ ) ||+ (+ github.event_name == 'pull_request_review' &&+ contains(github.event.review.body, '@claude') &&+ github.event.review.user.type != 'Bot' &&+ contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.review.author_association)+ ) ||+ (+ github.event_name == 'issues' &&+ github.event.action == 'opened' &&+ (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) &&+ contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association)+ )runs-on: ubuntu-latesttimeout-minutes: 60permissions:contents: writepull-requests: writeissues: write- id-token: writeservices:postgres:image: postgres:16@@ -50,14 +71,14 @@ jobs:- 6379:6379steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 0- name: Install dependenciesuses: ./.github/actions/yarn-install- name: Run Claude Codeid: claude-code- uses: anthropics/claude-code-action@v1+ uses: anthropics/claude-code-action@dde2242db6af13460b916652159b6ba19a598f30 # v1with:claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}additional_permissions: |@@ -102,7 +123,6 @@ jobs:contents: writepull-requests: writeissues: write- id-token: writeservices:postgres:image: postgres:16@@ -122,14 +142,14 @@ jobs:ports:- 6379:6379steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:fetch-depth: 0- name: Install dependenciesuses: ./.github/actions/yarn-install- name: Build prompt from dispatch payloadid: prompt- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const p = context.payload.client_payload;@@ -144,7 +164,7 @@ jobs:core.setOutput('issue_number', p.issue_number);- name: Run Claude Codeid: claude- uses: anthropics/claude-code-action@v1+ uses: anthropics/claude-code-action@dde2242db6af13460b916652159b6ba19a598f30 # v1with:claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}prompt: ${{ steps.prompt.outputs.prompt }}@@ -159,9 +179,16 @@ jobs:}- name: Dispatch response to ci-privilegedif: always()- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}- repository: twentyhq/ci-privileged- event-type: claude-cross-repo-response- client-payload: '{"repo": ${{ toJSON(steps.prompt.outputs.repo) }}, "issue_number": ${{ toJSON(steps.prompt.outputs.issue_number) }}, "run_id": ${{ toJSON(github.run_id) }}, "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}'+ env:+ GH_TOKEN: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}+ REPO: ${{ steps.prompt.outputs.repo }}+ ISSUE_NUMBER: ${{ steps.prompt.outputs.issue_number }}+ RUN_ID: ${{ github.run_id }}+ RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}+ run: |+ gh api repos/twentyhq/ci-privileged/dispatches \+ -f event_type=claude-cross-repo-response \+ -f "client_payload[repo]=$REPO" \+ -f "client_payload[issue_number]=$ISSUE_NUMBER" \+ -f "client_payload[run_id]=$RUN_ID" \+ -f "client_payload[run_url]=$RUN_URL"diff --git a/.github/workflows/docs-i18n-pull.yaml b/.github/workflows/docs-i18n-pull.yamlindex 76ad5b042f3..7138e2540a6 100644--- a/.github/workflows/docs-i18n-pull.yaml+++ b/.github/workflows/docs-i18n-pull.yaml@@ -37,7 +37,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}@@ -153,8 +153,7 @@ jobs:- name: Trigger i18n automergeif: github.event_name != 'pull_request' && steps.check_changes.outputs.changes_detected == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: i18n-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=i18n-pr-readydiff --git a/.github/workflows/docs-i18n-push.yaml b/.github/workflows/docs-i18n-push.yamlindex 7a645338cbf..99565598e77 100644--- a/.github/workflows/docs-i18n-push.yaml+++ b/.github/workflows/docs-i18n-push.yaml@@ -24,7 +24,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}ref: ${{ github.ref }}@@ -36,7 +36,7 @@ jobs:run: yarn docs:generate-navigation-template- name: Upload docs to Crowdin- uses: crowdin/github-action@v2+ uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2with:upload_sources: trueupload_translations: falsediff --git a/.github/workflows/i18n-pull.yaml b/.github/workflows/i18n-pull.yamlindex b078f5b7d48..d89569aaf34 100644--- a/.github/workflows/i18n-pull.yaml+++ b/.github/workflows/i18n-pull.yaml@@ -35,7 +35,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}ref: ${{ github.head_ref || github.ref_name }}@@ -69,7 +69,7 @@ jobs:- name: Pull translations from Crowdinif: inputs.force_pull || steps.compile_translations_strict.outcome == 'failure'- uses: crowdin/github-action@v2+ uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2with:upload_sources: falseupload_translations: false@@ -139,8 +139,7 @@ jobs:- name: Trigger i18n automergeif: steps.compile_translations.outputs.changes_detected == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: i18n-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=i18n-pr-readydiff --git a/.github/workflows/i18n-push.yaml b/.github/workflows/i18n-push.yamlindex 2f7229674de..7c608b27c71 100644--- a/.github/workflows/i18n-push.yaml+++ b/.github/workflows/i18n-push.yaml@@ -20,7 +20,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}ref: main@@ -80,7 +80,7 @@ jobs:- name: Upload missing translationsif: steps.check_extract_changes.outputs.changes_detected == 'true'- uses: crowdin/github-action@v2+ uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2with:upload_sources: trueupload_translations: true@@ -105,8 +105,7 @@ jobs:- name: Trigger i18n automergeif: steps.check_extract_changes.outputs.changes_detected == 'true' || steps.check_compile_changes.outputs.changes_detected == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: i18n-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=i18n-pr-readydiff --git a/.github/workflows/post-ci-comments.yaml b/.github/workflows/post-ci-comments.yamlindex 4912cd4a691..f12f83c7c94 100644--- a/.github/workflows/post-ci-comments.yaml+++ b/.github/workflows/post-ci-comments.yaml@@ -16,7 +16,7 @@ jobs:steps:- name: Get PR number from workflow runid: pr-info- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const runId = context.payload.workflow_run.id;@@ -63,9 +63,16 @@ jobs:- name: Dispatch to ci-privilegedif: steps.pr-info.outputs.has_pr == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}- repository: twentyhq/ci-privileged- event-type: breaking-changes-report- client-payload: '{"pr_number": ${{ toJSON(steps.pr-info.outputs.pr_number) }}, "run_id": ${{ toJSON(steps.pr-info.outputs.run_id) }}, "repo": ${{ toJSON(github.repository) }}, "branch_state": ${{ toJSON(github.event.workflow_run.head_branch) }}}'+ env:+ GH_TOKEN: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}+ PR_NUMBER: ${{ steps.pr-info.outputs.pr_number }}+ RUN_ID: ${{ steps.pr-info.outputs.run_id }}+ REPOSITORY: ${{ github.repository }}+ BRANCH_STATE: ${{ github.event.workflow_run.head_branch }}+ run: |+ gh api repos/twentyhq/ci-privileged/dispatches \+ -f event_type=breaking-changes-report \+ -f "client_payload[pr_number]=$PR_NUMBER" \+ -f "client_payload[run_id]=$RUN_ID" \+ -f "client_payload[repo]=$REPOSITORY" \+ -f "client_payload[branch_state]=$BRANCH_STATE"diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yamlindex 8e2a6d406cc..065a37cfe04 100644--- a/.github/workflows/preview-env-dispatch.yaml+++ b/.github/workflows/preview-env-dispatch.yaml@@ -36,17 +36,27 @@ jobs:runs-on: ubuntu-lateststeps:- name: Trigger preview environment workflow- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.GITHUB_TOKEN }}- repository: ${{ github.repository }}- event-type: preview-environment- client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ PR_NUMBER: ${{ github.event.pull_request.number }}+ PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}+ REPOSITORY: ${{ github.repository }}+ run: |+ gh api repos/"$REPOSITORY"/dispatches \+ -f event_type=preview-environment \+ -f "client_payload[pr_number]=$PR_NUMBER" \+ -f "client_payload[pr_head_sha]=$PR_HEAD_SHA" \+ -f "client_payload[repo_full_name]=$REPOSITORY"- name: Dispatch to ci-privileged for PR comment- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}- repository: twentyhq/ci-privileged- event-type: preview-env-url- client-payload: '{"pr_number": ${{ toJSON(github.event.pull_request.number) }}, "keepalive_dispatch_time": ${{ toJSON(github.event.pull_request.updated_at) }}, "repo": ${{ toJSON(github.repository) }}}'+ env:+ GH_TOKEN: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}+ PR_NUMBER: ${{ github.event.pull_request.number }}+ KEEPALIVE_DISPATCH_TIME: ${{ github.event.pull_request.updated_at }}+ REPOSITORY: ${{ github.repository }}+ run: |+ gh api repos/twentyhq/ci-privileged/dispatches \+ -f event_type=preview-env-url \+ -f "client_payload[pr_number]=$PR_NUMBER" \+ -f "client_payload[keepalive_dispatch_time]=$KEEPALIVE_DISPATCH_TIME" \+ -f "client_payload[repo]=$REPOSITORY"diff --git a/.github/workflows/preview-env-keepalive.yaml b/.github/workflows/preview-env-keepalive.yamlindex 5049c6a04b6..1e73f14ece0 100644--- a/.github/workflows/preview-env-keepalive.yaml+++ b/.github/workflows/preview-env-keepalive.yaml@@ -13,12 +13,12 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout PR- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:ref: ${{ github.event.client_payload.pr_head_sha }}- name: Login to Docker Hub- uses: docker/login-action@v3+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0with:username: ${{ vars.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_PASSWORD }}@@ -166,7 +166,7 @@ jobs:echo "$TUNNEL_URL" > tunnel-url.txt- name: Upload tunnel URL artifact- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: tunnel-urlpath: tunnel-url.txtdiff --git a/.github/workflows/visual-regression-dispatch.yaml b/.github/workflows/visual-regression-dispatch.yamlindex 526a9d8d2fe..67e0c15ad3d 100644--- a/.github/workflows/visual-regression-dispatch.yaml+++ b/.github/workflows/visual-regression-dispatch.yaml@@ -23,7 +23,7 @@ jobs:steps:- name: Determine project and artifact nameid: project- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const workflowName = context.payload.workflow_run.name;@@ -43,7 +43,7 @@ jobs:- name: Check if storybook artifact existsid: check-artifact- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const artifactName = '${{ steps.project.outputs.artifact_name }}';@@ -65,7 +65,7 @@ jobs:- name: Get PR numberif: steps.check-artifact.outputs.exists == 'true'id: pr-info- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const headBranch = context.payload.workflow_run.head_branch;@@ -107,7 +107,7 @@ jobs:- name: Download storybook artifact from triggering runif: steps.check-artifact.outputs.exists == 'true' && steps.pr-info.outputs.has_pr == 'true'- uses: actions/download-artifact@v4+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0with:name: ${{ steps.project.outputs.artifact_name }}path: storybook-static@@ -120,7 +120,7 @@ jobs:- name: Upload storybook tarballif: steps.check-artifact.outputs.exists == 'true' && steps.pr-info.outputs.has_pr == 'true'- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:name: ${{ steps.project.outputs.tarball_name }}path: /tmp/${{ steps.project.outputs.tarball_file }}@@ -128,17 +128,20 @@ jobs:- name: Dispatch to ci-privilegedif: steps.check-artifact.outputs.exists == 'true' && steps.pr-info.outputs.has_pr == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}- repository: twentyhq/ci-privileged- event-type: visual-regression- client-payload: >-- {- "pr_number": "${{ steps.pr-info.outputs.pr_number }}",- "run_id": "${{ github.run_id }}",- "repo": "${{ github.repository }}",- "project": "${{ steps.project.outputs.project }}",- "branch": "${{ github.event.workflow_run.head_branch }}",- "commit": "${{ github.event.workflow_run.head_sha }}"- }+ env:+ GH_TOKEN: ${{ secrets.CI_PRIVILEGED_DISPATCH_TOKEN }}+ PR_NUMBER: ${{ steps.pr-info.outputs.pr_number }}+ RUN_ID: ${{ github.run_id }}+ REPOSITORY: ${{ github.repository }}+ PROJECT: ${{ steps.project.outputs.project }}+ BRANCH: ${{ github.event.workflow_run.head_branch }}+ COMMIT: ${{ github.event.workflow_run.head_sha }}+ run: |+ gh api repos/twentyhq/ci-privileged/dispatches \+ -f event_type=visual-regression \+ -f "client_payload[pr_number]=$PR_NUMBER" \+ -f "client_payload[run_id]=$RUN_ID" \+ -f "client_payload[repo]=$REPOSITORY" \+ -f "client_payload[project]=$PROJECT" \+ -f "client_payload[branch]=$BRANCH" \+ -f "client_payload[commit]=$COMMIT"diff --git a/.github/workflows/website-i18n-pull.yaml b/.github/workflows/website-i18n-pull.yamlindex 516c23bd570..444391d8bf9 100644--- a/.github/workflows/website-i18n-pull.yaml+++ b/.github/workflows/website-i18n-pull.yaml@@ -35,7 +35,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}ref: ${{ github.head_ref || github.ref_name }}@@ -66,7 +66,7 @@ jobs:- name: Pull website translations from Crowdinif: inputs.force_pull || steps.compile_translations_strict.outcome == 'failure'- uses: crowdin/github-action@v2+ uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2with:upload_sources: falseupload_translations: false@@ -128,8 +128,7 @@ jobs:- name: Trigger i18n automergeif: steps.compile_translations.outputs.changes_detected == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: i18n-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=i18n-pr-readydiff --git a/.github/workflows/website-i18n-push.yaml b/.github/workflows/website-i18n-push.yamlindex a0e9802d49a..90552182baa 100644--- a/.github/workflows/website-i18n-push.yaml+++ b/.github/workflows/website-i18n-push.yaml@@ -24,7 +24,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1with:token: ${{ github.token }}ref: main@@ -78,7 +78,7 @@ jobs:- name: Upload missing website translationsif: steps.check_extract_changes.outputs.changes_detected == 'true'- uses: crowdin/github-action@v2+ uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2with:upload_sources: trueupload_translations: true@@ -104,8 +104,7 @@ jobs:- name: Trigger i18n automergeif: steps.check_extract_changes.outputs.changes_detected == 'true' || steps.check_compile_changes.outputs.changes_detected == 'true'- uses: peter-evans/repository-dispatch@v2- with:- token: ${{ secrets.TWENTY_INFRA_TOKEN }}- repository: twentyhq/twenty-infra- event-type: i18n-pr-ready+ env:+ GH_TOKEN: ${{ secrets.TWENTY_INFRA_TOKEN }}+ run: |+ gh api repos/twentyhq/twenty-infra/dispatches -f event_type=i18n-pr-readydiff --git a/.yarnrc.yml b/.yarnrc.ymlindex 26fd66ed67a..9f6a58b09fd 100644--- a/.yarnrc.yml+++ b/.yarnrc.yml@@ -6,4 +6,6 @@ enableInlineHunks: truenodeLinker: node-modules+npmMinimalAgeGate: "3d"+yarnPath: .yarn/releases/yarn-4.13.0.cjs