Skip to content

Commit 84c4924

Browse files
committed
ci(scanner): add required plugin security gate
Run the canonical HOL AI Plugin Scanner on pushes and pull requests with the thresholds required by the Awesome AI Plugins contribution gate.\n\nThe implementation follows docs/specs/2026-08-14-ai-plugin-scanner-ci.md and was validated with parsed workflow-contract assertions plus the six doc-link graph tests. This addresses the missing scanner evidence reported on upstream PR #74.\n\nCo-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
1 parent 9fd12f2 commit 84c4924

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Plugin Security Scan
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
scan:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
16+
17+
- name: Scan AI plugin repository
18+
uses: hashgraph-online/ai-plugin-scanner-action@55616c962cf86368423f7673b2ecdfdbe613d1af # v1
19+
with:
20+
plugin_dir: "."
21+
mode: scan
22+
min_score: 80
23+
fail_on_severity: high
24+
pr_comment: "off"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# AI plugin scanner CI
2+
3+
## Traceability
4+
5+
- Spec ID: ai-plugin-scanner-ci
6+
- Status: Implemented
7+
8+
## Intent
9+
10+
Run the HOL AI Plugin Scanner in GitHub Actions so repository changes receive
11+
the security and publishability gate required by the Awesome AI Plugins
12+
contribution process.
13+
14+
## Acceptance Scenarios
15+
16+
- AC-1: A push starts a workflow that scans the repository root in `scan` mode.
17+
- AC-2: A pull request starts the same scanner workflow.
18+
- AC-3: The scanner fails when the score is below 80 or a high-or-greater
19+
severity finding is present.
20+
- AC-4: The workflow invokes the canonical
21+
`hashgraph-online/ai-plugin-scanner-action` action and is accepted by the
22+
upstream contribution gate.
23+
24+
## Non-goals
25+
26+
- Changing scanner findings unrelated to installing the required CI gate.
27+
- Enabling SARIF upload, automated submissions, or pull-request comments.
28+
- Changing existing CI, release, or Pages workflows.
29+
30+
## Plan and Tasks
31+
32+
1. Add a least-privilege workflow under `.github/workflows/` for pushes and
33+
pull requests.
34+
2. Pin the checkout and scanner actions while retaining the scanner's `v1`
35+
compatibility annotation for reviewability.
36+
3. Configure the repository root, scan mode, score threshold, and severity
37+
threshold required by the upstream contribution gate.
38+
4. Validate the workflow structure locally, then observe the pushed GitHub
39+
Actions run and the upstream contribution gate.
40+
41+
## Test and Review Evidence
42+
43+
- AC-1, AC-2: Parse the workflow and inspect the declared event keys.
44+
- AC-3, AC-4: Parse the scanner step and assert its action identity and four
45+
required input values.
46+
- AC-1 through AC-4: Push the workflow and inspect its GitHub Actions result.
47+
- Risk: The scanner may expose pre-existing findings. Those findings remain
48+
visible follow-up work rather than being hidden or weakened by this change.

0 commit comments

Comments
 (0)