Skip to content

Automate

Add evidence from CI

Keep compliance evidence current: attach test results, scans and exports to a control every time your pipeline runs.

On this page

Add a file as evidence

grchero evidence add shows what it will upload and asks first. The file is scanned for malware and added as unreviewed evidence, linked to the control you name by its code or ID. A person reviews it in grcHero before it counts.

Terminal
grchero evidence add test-results.pdf --control CC6.1 --note 'Nightly test run'

Run it in your pipeline

Give the service token Evidence read and write and Controls read. Running the same file again does not upload it twice; it only confirms the link, so reruns are safe.

GitHub Actions
- run: ~/.local/bin/grchero evidence add reports/tests.pdf --control CC6.1 --expires 2027-01-31 --yes
  env:
    GRCHERO_API_TOKEN: ${{ secrets.GRCHERO_API_TOKEN }}
    GRCHERO_ORGANIZATION_ID: ${{ vars.GRCHERO_ORGANIZATION_ID }}

Note: --yes confirms without asking; it is required outside a terminal. --expires marks when the evidence goes stale, so grcHero can ask for a fresh run.

Options

OptionBehavior
--control CODE_OR_IDLink the evidence to this control
--project UUIDAdd the evidence to a project
--name TEXTEvidence name; defaults to the file name
--note TEXTWhy this file supports the control
--expires YYYY-MM-DDWhen the evidence goes stale
--yesUpload without asking

What can be uploaded

One file you name, never a folder: PDF, DOCX, XLSX, CSV, TXT, PNG or JPEG, within your workspace's upload limit and storage. Source code is never accepted. Convert machine output such as JUnit XML to PDF, CSV or TXT first.

grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.