mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
32 lines
759 B
YAML
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
|