APM - Agent Package Manager
ActionsTags
(1)Run APM workflows in GitHub Actions with full dependency management
🔧 Powered by APM CLI - Agent Package Manager
Enable AI-native development workflows in CI/CD. Automatic APM dependency resolution, AGENTS.md compilation, and Copilot CLI integration.
Copy this into .github/workflows/compliance.yml:
name: Compliance Audit
on: [push, pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: danielmeppiel/action-apm-cli@v1
with:
script: audit
env:
GITHUB_COPILOT_PAT: ${{ secrets.GITHUB_COPILOT_PAT }}That's it. This runs the compliance audit workflow from corporate-website, including:
- ✅ Automatic APM dependency installation (
danielmeppiel/compliance-rules,danielmeppiel/design-guidelines) - ✅ AGENTS.md compilation for agent compatibility
- ✅ Full GDPR compliance checking with audit trails
See the complete setup at danielmeppiel/corporate-website:
apm.yml:
name: corporate-website
dependencies:
apm:
- danielmeppiel/compliance-rules
- danielmeppiel/design-guidelines
mcp:
- microsoft/playwright-mcp
scripts:
audit: "copilot --log-level all --log-dir copilot-logs --allow-all-tools -p compliance-audit.prompt.md"
gdpr-check: "copilot --log-level all --log-dir copilot-logs --allow-all-tools -p gdpr-assessment.prompt.md"
accessibility: "copilot --log-level all --log-dir copilot-logs --allow-all-tools -p accessibility-audit.prompt.md"Workflow triggers:
# Full compliance suite on PR
- uses: danielmeppiel/action-apm-cli@v1
with:
script: audit
# GDPR-specific check
- uses: danielmeppiel/action-apm-cli@v1
with:
script: gdpr-check
# Accessibility validation
- uses: danielmeppiel/action-apm-cli@v1
with:
script: accessibility- 🚀 Installs APM CLI - Latest stable version
- 🤖 Sets up Copilot CLI - Modern AI runtime with GITHUB_COPILOT_PAT
- 📦 Installs Dependencies - Both APM packages and MCP servers from
apm.yml - 🔄 Compiles AGENTS.md - Generates agent-compatible context from dependencies
▶️ Runs Workflow - Executes your APM script with full context
| Input | Description | Default | Example |
|---|---|---|---|
script |
APM script from apm.yml to run | start |
audit, gdpr-check |
working-directory |
Directory containing apm.yml | . |
./workflows |
apm-version |
APM CLI version to install | latest |
0.4.1 |
skip-install |
Skip dependency installation | false |
true |
| Variable | Description | Required |
|---|---|---|
GITHUB_COPILOT_PAT |
Fine-grained PAT with Copilot access | Yes |
GITHUB_APM_PAT |
PAT for private APM dependencies | No |
-
Get GitHub Copilot PAT: github.com/settings/personal-access-tokens/new
- Select "Fine-grained personal access token"
- Add Copilot CLI access permissions
-
Add to Repository Secrets:
Settings→Secrets and variables→Actions→New repository secret- Name:
GITHUB_COPILOT_PAT - Value: Your fine-grained token
- Name:
-
Create apm.yml in your repository root (see corporate-website example)
📖 APM CLI Documentation • 🏢 Corporate Website Example • 🐛 Issues
APM - Agent Package Manager is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.