-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
55 lines (50 loc) · 1.46 KB
/
Copy pathaction.yml
File metadata and controls
55 lines (50 loc) · 1.46 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
name: Agent Skill Doctor
description: Statically check an Agent Skill without executing its scripts.
author: Agent Skill Doctor contributors
branding:
icon: shield
color: blue
inputs:
path:
description: Path to the Skill directory to check.
required: false
default: .
format:
description: Report format (text, json, or sarif).
required: false
default: text
output:
description: Optional report file. Leave empty to write to standard output.
required: false
default: ""
fail-on:
description: Minimum severity that fails the step (error, warning, critical, or never).
required: false
default: error
runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Agent Skill Doctor
shell: bash
run: python -m pip install --disable-pip-version-check "$GITHUB_ACTION_PATH"
- name: Check Skill
shell: bash
env:
SKILL_DOCTOR_PATH: ${{ inputs.path }}
SKILL_DOCTOR_FORMAT: ${{ inputs.format }}
SKILL_DOCTOR_OUTPUT: ${{ inputs.output }}
SKILL_DOCTOR_FAIL_ON: ${{ inputs['fail-on'] }}
run: |
args=(
"$SKILL_DOCTOR_PATH"
"--format" "$SKILL_DOCTOR_FORMAT"
"--fail-on" "$SKILL_DOCTOR_FAIL_ON"
)
if [[ -n "$SKILL_DOCTOR_OUTPUT" ]]; then
args+=("--output" "$SKILL_DOCTOR_OUTPUT")
fi
skill-doctor "${args[@]}"