Let’s Get Certified
Module 04 / 07 · Secure development and compliance

Apply repository policy and triage alerts

Separate prevention, detection, response and evidence. A single green check cannot establish that all four are in place.

Find the control that interrupts the failure

An organization needs consistent checks on the default branch. Define an organization-level ruleset with deliberate targets, required reviews or checks, and a narrow, reviewed bypass policy. Test applicability on a representative repository before broad enforcement. An audit event can show a policy change; save the effective configuration too if the auditor needs evidence of the resulting state.

For known problems in dependencies, inspect the dependency graph and Dependabot alerts. For code-level findings, use code scanning with the appropriate language and analysis configuration. For accidentally published credentials, secret scanning supplies a lead and push protection can prevent supported secrets entering a push. If a valid credential was exposed, coordinate prompt revocation or rotation with its owner, examine authorized audit records for use, and update consumers. Deleting the line alone leaves that credential usable.

Consider a private package consumed by two services. Ask each maintainer which component is deployed and which version is reachable. Link the advisory, record the fix or compensating control, and attach validation from the affected application. The presence of an automated update pull request establishes that a change was proposed; its deployment and the new dependency state are separate evidence.

Worked case 1

A repository has no code scanning alerts and no successful analysis on its default branch.

Check your reasoning

Verify that analysis ran on the expected revision, covered the language and uploaded results. Zero alerts without coverage gives no assurance. Record a successful run and its scope as evidence.

Worked case 2

A dependency alert has a fix available but an upgrade changes an API.

Check your reasoning

Determine which shipped applications use the affected version, assign a maintainer and validate the fix in tests. Use an advisory for coordinated disclosure where appropriate. Document any temporary exception, owner and review date.

GitHub documentation · GH-100 skills outline

Related lesson in GitHub Actions. Verify authority and provenance before deployment.

Practice with the recording

A new release branch is missing a required reviewer even though an organization ruleset exists. Which details decide whether it applies?

Check your reasoning

Inspect the repository target, branch or tag patterns, enforcement status and authorized exceptions. Test a representative pull request as an ordinary contributor and inspect the rule evaluation. A ruleset’s existence does not establish that it matches this branch.

Microsoft Learn · GH-100 episode 5 · 19:45

From policy to evidence

Select a nonproduction repository and a proposed ruleset. Evaluate which branches, users and exceptions it affects, then check an ordinary contributor’s pull request. Record separately the alert owner, the action required from maintainers and the policy evidence an auditor can inspect.

Knowledge check

Apply repository policy and triage alerts quiz

Answer 3 questions. Check each answer for an explanation.