Skip to content

Commit 046c317

Browse files
chore(ci): add security scans, pr build check and dependency upgrades
1 parent 7af12a1 commit 046c317

4 files changed

Lines changed: 90 additions & 0 deletions

File tree

.github/workflows/mcp-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: MCP Build Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
branches: [main]
7+
paths:
8+
- "modelcontextprotocol/**"
9+
- ".github/workflows/mcp-server-release.yml"
10+
- ".github/workflows/mcp-build.yml"
11+
12+
jobs:
13+
build-mcp-image:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 20
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
23+
- name: Build MCP image
24+
uses: docker/build-push-action@v5
25+
with:
26+
context: ./modelcontextprotocol/
27+
file: ./modelcontextprotocol/Dockerfile
28+
push: false
29+
load: true
30+
tags: mcp-build-check:latest
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: MCP Scheduled Security Scan
2+
3+
on:
4+
schedule:
5+
# Every Monday at 09:00 UTC
6+
- cron: '0 9 * * 1'
7+
workflow_dispatch: # Allow manual trigger
8+
9+
jobs:
10+
scan:
11+
uses: atlanhq/.github/.github/workflows/reusable-trivy-scan-scheduled.yml@main
12+
with:
13+
image_context: './modelcontextprotocol/'
14+
dockerfile: './modelcontextprotocol/Dockerfile'
15+
image_tag: 'mcp-scheduled-scan:latest'
16+
scan_uv_lock: true
17+
uv_lock_path: 'modelcontextprotocol/uv.lock'
18+
service_name: 'MCP Server'
19+
linear_team_id: ${{ vars.LINEAR_TEAM_ID }}
20+
linear_priority: 2
21+
secrets:
22+
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}

.github/workflows/mcp-trivy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: MCP Trivy Scan
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
branches: [main]
7+
paths:
8+
- "modelcontextprotocol/**"
9+
- ".github/workflows/mcp-trivy.yml"
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
actions: read
15+
security-events: write
16+
17+
jobs:
18+
trivy:
19+
uses: atlanhq/.github/.github/workflows/reusable-trivy-scan.yml@main
20+
with:
21+
image_context: './modelcontextprotocol/'
22+
dockerfile: './modelcontextprotocol/Dockerfile'
23+
image_tag: 'mcp-trivy:latest'
24+
scan_uv_lock: true
25+
uv_lock_path: 'modelcontextprotocol/uv.lock'
26+
add_pr_comment: true
27+
comment_title: 'MCP Trivy Scan Results'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Verify Snyk Status
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
branches: [main]
7+
8+
jobs:
9+
verify-snyk:
10+
uses: atlanhq/.github/.github/workflows/verify-snyk-status.yml@main
11+
secrets: inherit

0 commit comments

Comments
 (0)