Automate
Add evidence from CI
Keep compliance evidence current: attach test results, scans and exports to a control every time your pipeline runs.
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.
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.
- 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
| Option | Behavior |
|---|---|
--control CODE_OR_ID | Link the evidence to this control |
--project UUID | Add the evidence to a project |
--name TEXT | Evidence name; defaults to the file name |
--note TEXT | Why this file supports the control |
--expires YYYY-MM-DD | When the evidence goes stale |
--yes | Upload 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.