Skip to content

ci(security): SkillSpector workflow, PR report comment and SARIF #212

Closed

Description

@DevSecNinja

Part of #211 (rescues the workflow half of #125). Depends on the gate-script sub-issue.

Problem

No SkillSpector report appears on the PRs where AI primitives change: materialize review PRs (apm-sync) and Renovate github/awesome-copilot bumps (external-primitives).

Proposed solution

  • .github/workflows/skillspector.yml, job Scan AI primitives: runs on every PR so it can be a required check. It does the full scan when the PR touches apm.yml, apm.lock.yaml, .github/agents|prompts|instructions|hooks/**, .apm/**, .agents/**, hook scripts or the scanner itself, and passes quickly otherwise. It also runs on pushes to main and weekly.
  • SkillSpector bumped to v2.13.4, pinned by commit SHA with a Renovate comment.
  • Real-container smoke cases (benign, HIGH, invalid archive, timeout) before the repository scan.
  • scripts/skillspector-report.py: renders the run summary and a PR comment (counts by severity, top findings with file/line links, accepted items, a link to the SkillSpector alerts in Code Scanning). The comment is updated in place on re-runs. It also exports SARIF for upload to Code Scanning.
  • Seed .github/skillspector-accepted.json with the reviewed false positives.
  • CONTRIBUTING docs, including how to make the check required in the ruleset.

Activity

  1. 8 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions