Skip to content

CI/CD Integration

Block non-compliant changes before they reach production.

Add the ComplyForm Action to your repository. The action installs the CLI and authenticates using your license key.

.github/workflows/compliance.yml
name: Compliance Check
on: [pull_request]
jobs:
compliance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: complyform/complyform-action@v1
with:
version: latest
license-key: ${{ secrets.COMPLYFORM_LICENSE_KEY }}

Run assessment on every pull request and post results as a PR comment. Upload SARIF for GitHub Code Scanning integration.

name: PR Compliance Check
on:
pull_request:
paths: ['**/*.tf']
jobs:
assess:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: complyform/complyform-action@v1
with:
version: latest
license-key: ${{ secrets.COMPLYFORM_LICENSE_KEY }}
- name: Scan and assess
run: |
complyform scan --state=terraform.tfstate \
--assess --frameworks=soc2 \
--output=sarif --output-file=results.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
- name: Comment on PR
run: |
complyform assess --frameworks=soc2 --output=markdown \
>> $GITHUB_STEP_SUMMARY