Repository navigation
101 lines (91 loc) · 3.26 KB
/
Copy pathskill-scan.yml
File metadata and controls
101 lines (91 loc) · 3.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Skill Scanner
on:
pull_request:
paths:
- ".agents/skills/**"
- ".github/workflows/skill-scan.yml"
push:
branches: ["main"]
paths:
- ".agents/skills/**"
workflow_dispatch:
inputs:
severity:
description: "SkillSpector severity level (CRITICAL, HIGH, MEDIUM, LOW)"
required: false
default: "LOW"
type: choice
options:
- CRITICAL
- HIGH
- MEDIUM
- LOW
permissions: {}
jobs:
skillspector-scan:
name: SkillSpector security scan
runs-on: ubuntu-latest
timeout-minutes: 90
permissions:
contents: read
outputs:
report_path: ${{ steps.skill-scan.outputs.report_path }}
steps:
- name: Harden runner
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Run SkillSpector scan
id: skill-scan
uses: open-edge-platform/geti-ci/actions/skill-scan@0745e2b1612e4c25c3e83eb37bddeba8743a2439 # skill-scan/v0.1.1
with:
skills-path: .agents/skills/
severity-level: ${{ github.event_name == 'pull_request' && 'HIGH' || github.event.inputs.severity || 'LOW' }}
fail-on-findings: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
- name: Upload SkillSpector report
if: always() && steps.skill-scan.outputs.report_path != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: skill-spector-report
path: ${{ steps.skill-scan.outputs.report_path }}
retention-days: 30
overwrite: true
skill-validator-scan:
name: skill-validator scan
runs-on: ubuntu-latest
timeout-minutes: 90
permissions:
contents: read
outputs:
report_path: ${{ steps.skill-validator.outputs.report_path }}
steps:
- name: Harden runner
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Run skill-validator
id: skill-validator
uses: open-edge-platform/geti-ci/actions/skill-validator@3fd1ebf48e46ec6584850e20616763e73ddf94e9 # skill-validator/v0.2.2
with:
skills-path: .agents/skills/
strict: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
fail-on-findings: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
allow-dirs: "evals,example-prompts,benchmark"
- name: Upload validator report
if: always() && steps.skill-validator.outputs.report_path != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: skill-validator-report
path: ${{ steps.skill-validator.outputs.report_path }}
retention-days: 30
overwrite: true