1/41
Looks like no tags are added yet.
Possible results a check can return
Pass, fail, not_applicable, and error.
When a check returns not_applicable
A free-plan private repository that cannot use branch protection.
What an error result records
The reason the check could not complete, recorded without crashing the collector.
Contents of each evidence file
The check name, a UTC timestamp, the source, the control mappings, and the full result.
Why evidence is stored as JSON instead of screenshots
JSON is timestamped, machine-readable, repeatable, harder to fake, and can re-run on a schedule. Auditors accept system-generated evidence.
Why the collector does not use AI
Evidence must be repeatable and provable. The same input always gives the same answer, using hardcoded, verified control mappings.
Design rule for the GitHub check hook
It may not delete or rewrite anything, and changes need review.
How the branch protection check works
It finds the default branch, reads classic branch protection and rulesets, checks each required rule, then passes or fails and lists what is missing.
How the GitHub check logs in
A fine-grained, read-only personal access token with Metadata and Administration permissions, stored in an environment variable and never in code.
Cause of the false PASS in the first branch check version
It passed if any branch protection existed, and the wrong rule had been selected.
Fix for the false PASS in the branch check
It now requires three specific rules and lists any that are missing.
How the false PASS fix was tested
The check failed correctly, the ruleset was fixed, and it then produced a real PASS.
What the IAM check hook verifies
Root must have MFA, API-only users are listed for review, and console users must have MFA.
How the IAM check verifies root MFA
It reads AccountMFAEnabled from the IAM account summary, so it never touches root credentials.
Access used by the AWS check
A dedicated IAM user with no console access and only the AWS-managed SecurityAudit policy, which is read-only.
Why evidence stores user names only
Names and dates are saved, never ARNs, so the AWS account ID stays out of the evidence files.
Real IAM MFA check result on September 26, 2026
PASS: root MFA enabled, 0 console users, and 1 API-only user listed for review.
Security model in three words
Read-only, env-only, names-only.
How the evidence workflow is triggered
Cron '0 9 * * 1' (Mondays at 09:00 UTC) plus a manual Run workflow button.
Jobs in the evidence workflow
Two jobs, branch-protection and iam-mfa, each running on Python 3.13.
Where evidence is stored after a run
Uploaded as a workflow artifact kept for 90 days.
What 'if: always()' does in the save step
The save step runs even when the check fails, so evidence is kept and the run shows red.
Secrets used by the workflow
EVIDENCETOKEN, AWSACCESSKEYID, and AWSSECRETACCESS_KEY, stored as encrypted repository secrets.
Permission scope of the workflow's own GITHUB_TOKEN
Limited to contents read.
Fix for GitHub's Node 20 deprecation
Checkout, setup-python, and upload-artifact were updated to v7, which run on Node 24.
How the collector was built with Claude Code
Guided by a CLAUDE.md rules file (Python with requests and boto3 only, secrets from environment variables, hardcoded mappings, graceful errors) and delivered through 8 reviewed and tested pull requests.
Limits of the compliance collector
One repository and one AWS account at a time, IAM users only, checks that MFA exists but not its type, uses a long-lived key, evidence is not tamper-proofed, and there is no dashboard or ticketing.
Planned improvements to the collector
OIDC federation instead of stored keys, a custom minimal IAM policy, more checks such as CloudTrail and S3 encryption, central tamper-evident storage, and looping over every repo.
Approach for using the collector with a client
Define scope first, get written authorization in the engagement letter, and have the client run it in their own GitHub Actions with their own read-only token so the consultant never holds standing access.
What the compliance evidence collector is
A Python tool that automatically collects real evidence for two security controls, saves it as timestamped JSON, and runs every Monday on a schedule.
Reason for building the collector
To replace manual evidence collection with screenshots and show what repeatable, automated evidence looks like.
The two checks in the collector
Branch protection on the GitHub default branch, and MFA for AWS IAM console users.
Controls mapped to the branch protection check
NIST CM-3, SOC 2 CC8.1, and ISO 27001 A.8.32.
Controls mapped to the IAM MFA check
NIST IA-2(1) and IA-2(2), SOC 2 CC6.1, and ISO 27001 A.8.5.
Who creates the control mappings
The author hardcodes and manually verifies the mappings, so the tool never guesses controls with AI.
How the AWS IAM check works
It uses boto3 with a read-only SecurityAudit role, lists IAM users, and checks whether each console user has an MFA device.
Exit behavior when a check fails or errors
The collector still saves the evidence, then exits with code 1 so the workflow shows red.
Why the collector runs weekly on Mondays
It shows continuous monitoring instead of a once-a-year scramble for evidence. The weekly cadence is a demo setting, and a real program would set frequency by risk.
Current status of the collector
A proof of concept run on the author's own accounts. It is read-only and collects nothing from any client.
How the collector differs from fullCircle
fullCircle is a full platform that manages the whole compliance program, while the collector is a small script that demonstrates the evidence-collection idea.
Why automation matters for audit evidence
Automation produces evidence that is dated, repeatable, and traceable, which auditors need, and it frees people to focus on judgment work.
Work that people can focus on when evidence is automated
Interpreting results, deciding whether a gap is acceptable, and assessing risk, which require human judgment that automated collection cannot replace.