Skip to content

APM Security Scan

APM Security Scan #2

Workflow file for this run

# ============================================================================
# APM Security Scan Workflow
# ============================================================================
# This workflow audits agent configuration files (agents, instructions,
# prompts, skills) for prompt injection, data exfiltration directives, and
# supply chain manipulation. It runs on pull requests that modify any agent
# configuration file.
#
# Findings are uploaded as SARIF to the GitHub Security tab under the
# "apm-security/" category.
# ============================================================================
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: APM Security Scan
on:
workflow_dispatch:
pull_request:
paths:
- 'apm.yml'
- 'mcp.json'
- 'agents/**'
- 'instructions/**'
- 'prompts/**'
- 'skills/**'
- '**/*.agent.md'
- '**/*.instructions.md'
- '**/*.prompt.md'
- '**/AGENTS.md'
- '**/SKILL.md'
- '.github/copilot-instructions.md'
permissions:
contents: read
security-events: write
jobs:
audit:
name: APM — Agent Config Audit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run APM audit
uses: microsoft/apm-action@v1
with:
command: audit