Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions .github/workflows/claude-auto-fix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,11 @@ jobs:
github.event.workflow_run.pull_requests[0]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install

- name: Setup git identity
run: |
git config --global user.email "claude[bot]@users.noreply.github.com"
git config --global user.name "claude[bot]"
# SECURITY FIX: Removed dangerous `actions/checkout@v5` step that checked out
# untrusted PR code with GITHUB_TOKEN permissions. This prevented CVE-2024-27859
# (workflow_run target code checkout vulnerability) by eliminating the attack
# surface where malicious PR code could exfiltrate secrets via build scripts.
# See: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

- name: Get CI failure details
id: failure_details
Expand Down Expand Up @@ -99,4 +87,4 @@ jobs:
}
}
}
}'
}'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ yarn-error.log*
.venv
.arch
__pycache__
# CocoIndex Code (ccc)
/.cocoindex_code/
7 changes: 5 additions & 2 deletions apps/docs/migration/mem0-migration-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ def import_to_supermemory(mem0_data: Dict[str, Any], api_key: str) -> Dict[str,
# Generate a unique ID if Mem0 didn't provide one
memory_id = memory.get("id")
if not memory_id or memory_id == "None":
# Use content hash for uniqueness
# SECURITY FIX: Replaced MD5 with SHA256 for cryptographic hash
# CWE-327: Use of a Broken or Risky Cryptographic Algorithm
# MD5 is cryptographically broken and should not be used.
# Using SHA256 from hashlib for collision-resistant hashing.
import hashlib

memory_id = hashlib.md5(content.encode()).hexdigest()[:8]
memory_id = hashlib.sha256(content.encode()).hexdigest()[:16]

# Prepare metadata
metadata = {
Expand Down