LibreChat/.github/workflows/repository-safety.yml
lia-by-librechat[bot] 9cfa807950
🦮 fix: Confine Repository Symlinks for Argo CD (#18402)
Co-authored-by: Lia <lia@librechat.ai>
2026-11-18 07:51:14 -05:00

32 lines
759 B
YAML

name: Repository Safety
on:
pull_request:
merge_group:
types: [checks_requested]
push:
branches: [dev, main]
permissions:
contents: read
concurrency:
group: repository-safety-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
symlinks:
name: Confine repository symlinks
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/setup-node@v5
with:
node-version: '24.22.3'
- name: Test symlink guard
run: node --test .github/scripts/check-symlinks.test.mjs
- name: Reject out-of-bounds symlinks
run: node .github/scripts/check-symlinks.mjs