-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 1011 Bytes
/
example.yml
File metadata and controls
39 lines (33 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Example MCP Scorecard
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
scan-demo-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run MCP Scorecard
id: scorecard
uses: ./
with:
cmd: python examples/insecure-server/server.py
min-score: "80"
json-out: mcp-scorecard-report.json
sarif-out: mcp-scorecard-report.sarif
markdown-out: mcp-scorecard-summary.md
- name: Show Scorecard Outputs
if: always()
shell: bash
run: |
echo "total score: ${{ steps.scorecard.outputs.total-score }}"
echo "passed: ${{ steps.scorecard.outputs.passed }}"
echo 'category scores: ${{ steps.scorecard.outputs.category-scores }}'
- name: Upload SARIF
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: mcp-scorecard-report.sarif