Skip to content

Commit c4751f5

Browse files
authored
fix: fork checks (#194)
1 parent 59e2511 commit c4751f5

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

.github/workflows/lint.yml renamed to .github/workflows/check.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
2-
name: Lint
2+
name: Checks
33
on:
44
push:
55
branches:
66
- main
77
pull_request:
8+
pull_request_target:
9+
branches:
10+
- main
811

912
permissions: {}
1013

@@ -35,3 +38,21 @@ jobs:
3538
- name: Install dependencies
3639
run: npm ci
3740
- run: npm run generate
41+
42+
check-dep:
43+
name: Check dependencies
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-node@v4
49+
with:
50+
node-version-file: package.json
51+
cache: "npm"
52+
- name: Install dependencies, build and remove dev dependencies
53+
run: |
54+
npm ci
55+
rm -rf node_modules
56+
npm pkg set scripts.prepare="exit 0"
57+
npm install --omit=dev
58+
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"

.github/workflows/code_health.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,6 @@ jobs:
6262
name: atlas-test-results
6363
path: coverage/lcov.info
6464

65-
dep-check:
66-
name: Check dependencies
67-
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
68-
runs-on: ubuntu-latest
69-
steps:
70-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
71-
- uses: actions/checkout@v4
72-
- uses: actions/setup-node@v4
73-
with:
74-
node-version-file: package.json
75-
cache: "npm"
76-
- name: Install dependencies & build
77-
run: npm ci
78-
- name: Remove dev dependencies
79-
run: |
80-
rm -rf node_modules
81-
npm pkg set scripts.prepare="exit 0"
82-
npm install --omit=dev
83-
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"
84-
8565
coverage:
8666
name: Report Coverage
8767
if: always() && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository

.github/workflows/code_health_fork.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
permissions:
4343
pull-requests: write
4444
contents: write
45-
needs:
46-
- run-tests
4745
steps:
4846
- name: Enable auto-merge for Dependabot PRs
4947
run: gh pr merge --auto --squash "$PR_URL"

0 commit comments

Comments
 (0)