Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔒 Compliance Autopilot

Automate SOC2, GDPR, and ISO27001 compliance evidence collection. Pass audits without the pain.

GitHub Marketplace CI License: MIT Version

⚡ Quick Start

name: Compliance Check
on: [pull_request]
jobs:
  compliance:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: m0rphsec/compliance-autopilot@v1
        with:
          frameworks: 'soc2'

Tip: Add anthropic-api-key if you enable the GDPR framework. See Configuration for all options.

✨ Features

🎯 SOC2 Type II

  • ✅ 10 Common Criteria controls automated
  • ✅ Code review enforcement (CC1.1)
  • ✅ Risk assessment (CC3.1)
  • ✅ Dependency risk management (CC5.2)
  • ✅ Deployment controls (CC6.1)
  • ✅ Environment protection (CC6.3)
  • ✅ Access management (CC6.6)
  • ✅ Secure SDLC (CC6.8)
  • ✅ System monitoring (CC7.1)
  • ✅ Monitoring & anomaly detection (CC7.2)
  • ✅ Change management (CC8.1)

🔐 GDPR Compliance

  • ✅ 7 Article-level controls automated
  • ✅ PII detection in code — Art. 6
  • ✅ Encryption in transit — Art. 5(1)(f)
  • ✅ Encryption at rest — Art. 32
  • ✅ Consent mechanism checks — Art. 7
  • ✅ Data retention policy tracking — Art. 5(1)(e)
  • ✅ Right to erasure validation — Art. 17
  • ✅ Privacy by design — Art. 25

📋 ISO 27001

  • ✅ 11 Annex A controls automated
  • ✅ Privileged access management (A.9.2.3)
  • ✅ Information access restriction (A.9.4.1)
  • ✅ Change management (A.12.1.2)
  • ✅ Malware controls (A.12.2.1)
  • ✅ Event logging (A.12.4.1)
  • ✅ Vulnerability management (A.12.6.1)
  • ✅ System change control (A.14.2.2)
  • ✅ Secure engineering principles (A.14.2.5)
  • ✅ Security testing (A.14.2.8)
  • ✅ Security event reporting (A.16.1.2)
  • ✅ Incident response (A.16.1.5)

📊 What You Get

Every PR gets an automated compliance report:

  • Real-time compliance status posted as PR comment
  • PDF evidence package ready for auditors
  • JSON evidence trail stored immutably in GitHub Releases
  • Slack alerts when violations detected (optional)
  • Continuous monitoring on every code change
  • Claude AI-powered analysis for contextual understanding

🚀 Why This Matters

Manual Compliance is Painful

  • ❌ 100-200 hours per quarter collecting evidence
  • ❌ $20,000-$100,000+ in audit costs
  • ❌ 6-12 months to first certification
  • ❌ Human error risk
  • ❌ Spreadsheet maintenance nightmare

Automated Compliance is Better

  • Save 100+ hours per quarter
  • Reduce audit costs by 40-60%
  • Faster certification (2-3 months)
  • Continuous monitoring catches issues early
  • Immutable evidence trail in Git history

💡 Use Cases

Preparing for SOC2

- uses: m0rphsec/compliance-autopilot@v1
  with:
    frameworks: 'soc2'
    report-format: 'pdf'
    fail-on-violations: 'true'

GDPR + SOC2 Combo

- uses: m0rphsec/compliance-autopilot@v1
  with:
    anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
    frameworks: 'soc2,gdpr'
    slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

All Frameworks with Failure Mode

- uses: m0rphsec/compliance-autopilot@v1
  with:
    anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
    frameworks: 'soc2,gdpr,iso27001'
    report-format: 'both'
    fail-on-violations: 'true'

Daily Compliance Scan

on:
  schedule:
    - cron: '0 9 * * *'  # 9 AM daily
jobs:
  compliance:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: m0rphsec/compliance-autopilot@v1
        with:
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
          frameworks: 'soc2,gdpr,iso27001'

See more examples →

📈 Pricing

Free Tier

  • ✅ Public repositories
  • ✅ SOC2 framework only
  • ✅ 100 scans/month
  • ✅ JSON reports
  • ✅ Community support

Get Started Free →

Basic — $19.99/month ($199.99/year)

  • ✅ 1 private repository
  • ✅ All frameworks (SOC2 + GDPR + ISO27001)
  • ✅ Unlimited scans
  • ✅ PDF + JSON reports
  • ✅ Email support

Subscribe → | Annual →

Pro — $49.99/month ($499.99/year)

  • ✅ 5 private repositories
  • ✅ All frameworks (SOC2 + GDPR + ISO27001)
  • ✅ Unlimited scans
  • ✅ PDF + JSON reports
  • ✅ Slack integration
  • ✅ Custom controls
  • ✅ Priority support

Subscribe → | Annual →

Enterprise — $149.99/month ($1,499.99/year)

  • ✅ Unlimited repositories
  • ✅ All frameworks (SOC2 + GDPR + ISO27001)
  • ✅ Unlimited scans
  • ✅ PDF + JSON reports
  • ✅ Slack integration
  • ✅ Custom controls
  • ✅ SLA + dedicated support

Subscribe → | Annual →

🎯 Who This Is For

  • 🚀 Series A+ startups preparing for SOC2
  • 💼 SaaS companies serving enterprise clients
  • 📊 Any company spending $20K+ on annual compliance

📚 Documentation

🔧 Configuration

Inputs

Input Description Required Default
github-token GitHub token for API access No ${{ github.token }}
anthropic-api-key Anthropic API key for Claude analysis (required for GDPR only) No -
license-key License key for paid features No -
frameworks Comma-separated frameworks (soc2,gdpr,iso27001) No soc2
report-format Report format (pdf, json, both) No both
fail-on-violations Fail workflow if violations found No false
slack-webhook Slack webhook for alerts (optional) No -

Outputs

Output Description
compliance-status Overall status: PASS or FAIL
controls-passed Number of controls that passed
controls-total Total number of controls checked
report-url URL to the generated evidence report

🔒 Security

This action:

  • ✅ Never stores your code outside GitHub
  • ✅ Only uses read-only GitHub token permissions by default
  • ✅ Anthropic API key encrypted in GitHub Secrets
  • ✅ All evidence stored in your GitHub repository
  • ✅ No third-party data sharing
  • ✅ Secrets automatically redacted from logs
  • ✅ Minimal permission requirements

Security Policy →

🛠️ How It Works

  1. Collect Evidence - Scans GitHub repository for compliance signals

    • PR reviews, approvals, code changes
    • Deployment history, access controls
    • Security policies, incident tracking
  2. Analyze Code - Uses Claude AI to understand context

    • PII detection in code and comments
    • Encryption verification
    • Security best practices
  3. Generate Reports - Creates audit-ready documentation

    • PDF reports with executive summary
    • JSON evidence for programmatic access
    • Immutable storage in GitHub Releases
  4. Alert Teams - Notifies when issues found

    • PR comments with detailed findings
    • Slack alerts for critical violations
    • Action failure for blocking issues

🤝 Support

🚀 Getting Started

1. Create Workflow

Add .github/workflows/compliance.yml:

name: Compliance Check
on:
  pull_request:
    types: [opened, synchronize]
  push:
    branches: [main]

jobs:
  compliance:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0  # Full history for accurate analysis

      - uses: m0rphsec/compliance-autopilot@v1
        with:
          frameworks: 'soc2'
          report-format: 'both'
          fail-on-violations: 'false'

2. (Optional) Add an Anthropic API Key

Only required if you enable the GDPR framework. Sign up at Anthropic Console, then add the key to your repository:

Settings → Secrets → Actions → New repository secret:

  • Name: ANTHROPIC_API_KEY
  • Value: Your API key

Then add anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} and frameworks: 'soc2,gdpr' to your workflow step.

3. Open a Pull Request

The action will automatically run and post a compliance report!

📜 License

MIT © m0rphsec

About

Automate SOC2, GDPR, and ISO27001 compliance evidence collection

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages