How software ships: Git, pull requests and CI/CD

Code changes go through a pull request, get reviewed, then a pipeline deploys them. Each step leaves evidence.

// TECH FOR GRC

The path a change takes

  1. Ticket: someone records why the change is needed, in Jira or a similar tool.
  2. Branch: an engineer makes the change in a separate copy of the code.
  3. Pull request (PR): they ask for it to be merged into the main code.
  4. Review and approval: another engineer reviews and approves it.
  5. CI: automated builds and tests run, including security checks.
  6. Merge and CD: once approved and passing, the pipeline deploys it to production.

Environments

Changes are tried in development and test (often called staging) before production, where real customers and data are. Keeping these separate is a control (ISO A.8.31). Developers with standing write access to production can skip the whole process.

Where it goes wrong

  • Self-approval: the author approves their own change.
  • Approval after deployment: the approval is real, but too late to count.
  • Admins bypassing branch protection, the setting that forces reviews.
  • Emergency changes with no review afterwards.

What this means for evidence

  • The branch protection setting requiring review, with no bypass for admins.
  • For each sampled change, the PR showing a different approver, the approval time before the merge time, and the linked ticket.
  • The deployment log, which gives the full list of changes, including any made without a PR.
// WHAT IT LOOKS LIKE AS EVIDENCE
Branch protection on the production branchGitHub · proves CC8.1, A.8.32, A.8.4
GitHubSAMPLE
complyoo/api › Settings › Branches › main

Branch protection rule: main

Organization: complyooViewed 2026-10-021
  • Require a pull request before mergingOn2
  • Required approvals13
  • Dismiss stale approvals when new commits are pushedOn
  • Require status checks to passOn: build, tests, snyk
  • Do not allow bypassing the above settingsOn (includes administrators)4
  1. 1Date and repository.
  2. 2Pull request required, so every change is visible.
  3. 3At least one approval by someone other than the author.
  4. 4No bypass, even for admins. Without this the rule is optional.

Weak version: Administrators can bypass the rule, and nothing stops them merging directly.

A sampled change: approved before merge, linked to a ticketGitHub and Jira · proves CC8.1, A.8.32
GitHub pull requestSAMPLE
complyoo/api › Pull requests › #1482

#1482 Rate limit the export endpoint

Captured 2026-10-02
Author
imran.s1
Approved by
david.e on 2026-09-17 14:222
Merged
2026-09-17 15:01 by imran.s3
Linked ticket
CHG-221: Export endpoint abuse4
Checks
build passed, tests passed, snyk passed
  1. 1The author.
  2. 2A different person approved it, and the time is recorded.
  3. 3Merged after the approval. Compare the two timestamps on every sample.
  4. 4Linked to a ticket that says why the change was needed.

Weak version: Approved after it was merged. An approval after the fact proves nothing about the change before it went live.

Deployment log for the population of changesGitHub Actions or another CI/CD tool · proves CC8.1, A.8.32, A.8.31
CI/CD deploymentsSAMPLE
complyoo/api › Actions › Deploy to production

Production deployments, September 2026

Environment: productionExported 2026-10-011
DeployedCommitPR2Triggered byEnvironment approval3
2026-09-17 15:09a41f9c2#1482merge to maindavid.e
2026-09-22 11:30c07e118#1490merge to mainmaria.s
2026-09-28 02:14e9d3a70none (hotfix)manualdavid.e4
  1. 1The whole period. The auditor needs the complete population before sampling.
  2. 2Each deployment ties back to a PR.
  3. 3Environment approval before production.
  4. 4An emergency change. The auditor will ask for its after-the-fact review under the emergency change procedure.

Weak version: A list of merged PRs instead of deployments. It misses anything deployed without a PR, which is exactly what the auditor is looking for.

// REMEMBER THIS

Ticket, pull request, someone else approves, pipeline deploys. That chain is the change control.

// CHECK YOURSELF

1. An engineer approves their own pull request. What is wrong?

2. Which list should an auditor sample changes from?

3. Approval at 15:10, merge at 14:32. Does it hold up?