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

Choose and govern API integrations

Match a token to the actor, its lifetime and the required repositories. An integration that belongs to a service needs a lifecycle the team can operate.

Choose an identity that can outlive its author

A release dashboard reads pull requests in six repositories. A GitHub App installation can be restricted to selected repositories and granted the permissions the app actually needs. An installation token is short-lived; refresh it through the installation flow. An OAuth App acts on behalf of an authorizing user within granted scopes and that user's access. A personal access token represents its user. Use fine-grained permissions, expiry and organization approvals where supported. Protect all credentials using the team's secret-management process.

When several clients slow down, inspect the actual response and rate-limit headers. A primary limit provides a reset time. Secondary limits can require a pause even with primary budget remaining. Honor retry guidance; queue or cache reads and prefer events for updates. Check whether requests share a user's budget or use an installation identity before adding capacity. Review and revoke unused grants when integrations or staff change.

Sketch the app owner, installation, repositories in scope and permissions. If a resource returns an access error, check selection and permission before expanding either. For a rate-limit error, separate the primary budget from secondary limits and inspect the reset or retry guidance. Store the response metadata needed for diagnosis without logging credentials.

Worked case 1

A build dashboard stopped updating the day its author's personal account left the organization.

Check your reasoning

Audit its authentication identity, then move service-owned collection to an approved installation with explicit repository access. Restrict its permissions to the data the dashboard displays and assign an owner for recovery.

Worked case 2

A vendor requests write access to every repository to count opened issues.

Check your reasoning

Ask for the minimum read permission and a limited installation on participating repositories. Review the vendor's data handling, owner and revocation path before approving the installation.

GitHub documentation · GH-100 skills outline

Related lesson in GitHub Foundations. Separate identity, read access and merge authority.

Practice with the recording

A vendor app requests access to all repositories so it can label issues in two of them. How would you evaluate installation?

Check your reasoning

Compare each requested permission with the job, restrict installation to the two repositories where supported and identify who can revoke it. Review organizational approval policy and audit events before expanding its scope.

Microsoft Learn · GH-100 episode 7 · 17:00

Rate limits and ownership

Compare a scheduled integration using a personal access token with one using a GitHub App installation. Determine repository scope, how each credential expires and how a rate-limited client learns when to retry. Document how the service keeps running when an employee leaves.

Knowledge check

Choose and govern API integrations quiz

Answer 3 questions. Check each answer for an explanation.