Skip to content

chore(ci): tighten ci environment and update-vector-store scripts - #316

Merged
babblebey merged 4 commits into
mainfrom
chore/ci
Nov 12, 2026
Merged

babblebey merged 4 commits into
mainfrom
chore/ci

Conversation

@babblebey

@babblebey babblebey commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

This pull request updates several GitHub Actions workflows and improves the reliability and security of the vector store update process. The main changes include pinning GitHub Actions to specific commit hashes, enforcing stricter validation of dictionary slugs, and improving the handling of CLI arguments and environment variables for vector store updates.

Workflow hardening and dependency pinning:

  • All GitHub Actions in workflow files (such as actions/checkout, actions/setup-node, actions/upload-artifact, and actions/github-script) are now pinned to specific commit hashes to improve security and reproducibility.

Vector store update improvements:

  • Added explicit GitHub token permissions and stricter conditional logic to the update-vector-store.yml workflow, ensuring it only runs on the main branch for manual triggers and only with the correct permissions.
  • Improved the detection and validation of dictionary file changes: manual inputs for upsert/delete slugs are now validated with a regex to enforce lowercase letters, digits, and single hyphens. Validation errors now cause the workflow to fail early.
  • The update step now passes upsert/delete slugs via environment variables and constructs CLI arguments as arrays, improving reliability and correctness in argument handling.

Dependency updates in dev scripts:

  • Updated imports in dev/seed-vector-store.js and dev/update-vector-store.js to use @langchain/classic packages, reflecting upstream package changes.

CLI argument validation:

  • Added a parseSlugList function in dev/update-vector-store.js to validate upsert/delete slug arguments, ensuring they conform to the required pattern and providing clear error messages.

@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
jargons-dev Ready Ready Preview Nov 12, 2026 3:50am UTC

@babblebey
babblebey merged commit 4fdd6ea into main Nov 12, 2026
6 checks passed
@babblebey
babblebey deleted the chore/ci branch November 12, 2026 03:57

This branch was successfully deployed

1 active deployment
Preview — 739077d6 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant