MSBA-299 · Lesson 10 of 12 · 17 min
Hands-on practice
▶ Video coming soon A video version of this lesson is on the way.
Watching an enterprise being administered is not the same as administering one. Priya had sat through two months of Skerry working sessions, but she had never pressed the buttons herself, and several of her look-alike misses came from not knowing what the settings pages actually offered. So the plan from the start included a practice enterprise of her own. Marisol was clear that it could not be Skerry's: "skerry-sandbox is for our developers, and you are not a Skerry employee." Tidewater stays on the Team plan, so the practice could not happen there either. Priya started a trial of GitHub Enterprise Cloud under her own name, created two test organizations in it, and spent two long afternoons, Sunday, November 15 and Saturday, November 21, working through twelve labs that Wren had written.
This lesson describes those labs. They are designed to touch every domain of the outline in a safe place: an environment where nothing is real, nobody else depends on the settings and mistakes cost nothing. You can repeat them in your own trial or test enterprise. If you have access to a test enterprise at work, use it only with permission and never point a lab at production settings or real people's accounts.
Setting up a safe practice environment
GitHub offers trials of Enterprise Cloud; the length and the features included can change, so check the current terms when you start one. A trial with personal accounts is the practical choice for most candidates, because a managed user enterprise needs an identity provider configured for SCIM provisioning before anyone can sign in. Priya used her personal GitHub account as the enterprise owner, created a second personal account as a test member, and invited Lena's account as an outside collaborator for one lab, with Lena's agreement. She named the organizations twg-lab-one and twg-lab-two so that nobody could mistake them for Tidewater's real organization.
| Item | Priya's choice | Why |
|---|---|---|
| Enterprise | Enterprise Cloud trial with personal accounts | No identity provider needed to start; most settings available |
| Organizations | Two test organizations | Lets policies, rulesets and runner groups be tested across organizations |
| People | Her own account as owner, a second test account as member, a colleague as outside collaborator | Roles can be seen from both sides |
| Repositories | Six small repositories with public, private and internal visibility | Lets visibility and access rules be tested |
| Runner | One self-hosted runner in a virtual machine on her laptop | Runner groups and labels can be tested without cost |
| Secrets | Dummy values only, never real credentials | Nothing of value can leak |
Labs for identities and access
Lab 1: roles from both sides. Set the base permission in twg-lab-one to none. Create two teams, one with Read and one with Write on a private repository. Add the test account to the Read team and confirm what it can do; then add it to the Write team as well and confirm that it can now push. Finally, give it Triage directly and confirm that it still has Write. The point is to see additive access with your own eyes, so that the "why can they still push?" question becomes obvious.
Lab 2: a custom repository role and an organization role. Create a custom repository role that inherits Write and adds one extra permission, assign it to a team, and check the result. Then look at the predefined organization roles and give the test account the security manager role. Note what that role can see without being an owner, such as security settings and alerts across repositories, and what it cannot change.
Lab 3: identity settings without an identity provider. Open the enterprise's authentication security settings and read every option: SAML single sign-on, the 2FA requirement, SSH certificate authorities and IP allow lists. Turn on the 2FA requirement and watch what the settings page warns will happen to members without 2FA. If you can use a test identity provider tenant, configure SAML on twg-lab-two only, sign in as the test member, and look at the linked identity from the owner's side. If not, read GitHub's configuration guide for your identity provider and write down where each value comes from, as Priya did after watching Amadou configure OIDC with Entra ID at Skerry.
Labs for the enterprise environment
Lab 4: licenses and billing pages. Open the enterprise's licensing and billing pages. Find the consumed license count and download the list of license holders. Add the outside collaborator to a private repository and see whether the count changes; send an invitation that is not accepted and see that it does not. Assign the test account the billing manager role and confirm that it can see billing without seeing code.
Lab 5: the support path. Draft, without sending, a GitHub Support ticket for an invented problem: a ruleset that seems to block a merge it should allow. List the evidence you would attach: time with time zone, enterprise, organization and repository names, the request ID from the error, and the audit log entries for the ruleset. For Enterprise Server, read the diagnostics and support bundle instructions and write the commands for a standard and an extended bundle from memory, then check them. Priya also asked Roderick for his old runbook from the retired Server appliance, which turned the commands into something she could picture.
Labs for secure development and compliance
Lab 6: policies and rulesets. At enterprise level, enforce a repository policy that members cannot change visibility, and confirm from an organization that the setting is locked. Create a custom property called data-classification with allowed values. Write an enterprise ruleset that requires a pull request with one approval on default branches, and an organization ruleset in twg-lab-one requiring two approvals for repositories whose property is confidential. Put the second ruleset in evaluate mode first and read its insights; then make it active and try to merge with one approval.
Lab 7: tokens and apps. In twg-lab-two, restrict classic tokens, require approval for fine-grained tokens and set a 30-day maximum lifetime. As the test member, create a fine-grained token for the organization and watch the request appear for the owner. Register a small GitHub App owned by the organization, with read access to metadata only, install it on one repository, and look at the installation from the owner's side. Turn on OAuth app access restrictions and see what a member sees when they authorize an OAuth app.
Lab 8: security configuration and audit log. Create a security configuration that turns on secret scanning, push protection and Dependabot alerts, apply it to the private repositories, and make it the default for new ones. Add a custom secret pattern that matches an invented format, such as TWG- followed by twelve digits, and push a commit containing a fake value to see push protection block it. Then search the audit log for everything you did that afternoon, by actor and by action, and run the same search through the REST API.
# Everything the lab owner did today, from the enterprise audit log
gh api --paginate \
"/enterprises/twg-lab/audit-log?phrase=actor:pnair-lab+created:2026-11-21" \
--jq '.[] | [.action, .org, .repo] | @tsv'Labs for Actions
Lab 9: allowed actions and reuse. At enterprise level, allow only enterprise actions plus actions created by GitHub, and require full-length SHA pinning. Write a workflow that uses a third-party action by tag and watch it fail; pin it to a commit SHA and add the action to the allowed list, and watch it pass. Put a reusable workflow in an internal repository, allow access from the enterprise, and call it from a repository in the other organization.
Lab 10: runners and secrets. Register the self-hosted runner in an enterprise runner group shared only with twg-lab-one, and limited to one workflow. Run a job from twg-lab-two that asks for the runner's label and watch it wait; run the allowed workflow from twg-lab-one and watch it start. Create a secret with the same name at organization, repository and environment level with different dummy values, and print a hash of the value in each case to see which one wins without exposing it. Add a required reviewer to the environment and watch the job pause until the reviewer approves.
Labs for monitoring and optimization
Lab 11: usage and budgets. Open the billing usage pages and download a usage report, even if it contains only a few minutes of Actions. Identify each column: product, item, organization, repository, date, quantity and cost. Create a budget for Actions at organization level with an alert, and another for Codespaces that stops usage. Write a two-sentence recommendation as if the small numbers were large ones.
Lab 12: activity and API usage. Turn on API request events and source IP disclosure in the enterprise's audit log settings, run a few API calls with a fine-grained token and with the GitHub App, and find both in the audit log. Note how the credential type is shown. Look for the dormant users report and read how it defines activity. Then turn API request events off again and note the setting change in the log.
| Lab | Main domain | What Priya got wrong the first time |
|---|---|---|
| 1. Roles from both sides | 1 | Expected the direct Triage role to lower access |
| 6. Policies and rulesets | 3 | Tried to loosen an enforced enterprise policy from the organization |
| 7. Tokens and apps | 3 | Forgot that tokens created by owners need no approval, and was puzzled when her own token went straight through |
| 9. Allowed actions and reuse | 4 | Forgot to allow access to the internal repository's workflow from the enterprise |
| 10. Runners and secrets | 4 | Shared the runner group but did not allow the repository |
| 12. Activity and API usage | 5 | Looked for API calls before enabling API request events |
Two afternoons were enough for all twelve labs, with notes. Priya's rule was to write down, for every lab, one sentence that began "The exam will try to make me think..." followed by the wrong idea the lab had corrected. Those sentences became the most useful page in her notes, because each one was a trap she had already walked into and climbed out of.
The last thing she did in the trial was to try the exam sandbox again, with the certification page open beside it, so that the interface would feel familiar on the day. Then she downloaded her notes and left the trial to expire on its own, removing the test member and the outside collaborator first.
When a trial is not possible
Not every candidate can start an enterprise trial, and some objectives cannot be practiced in one anyway: managed users without an identity provider, Enterprise Server without a host to run it, Azure private networking without an Azure subscription. Three substitutes work well. The first is the documentation itself, read with a purpose: for each objective, find the settings page in the documentation, list every option on it and write one sentence on when you would choose each. The second is Microsoft Learn's GitHub Administration learning paths, which the study guide links in two parts, and which include exercises in GitHub. The third is watching someone who administers a real enterprise, as Priya did at Skerry, and writing down every decision and its reason.
| Objective that is hard to practice | Substitute |
|---|---|
| Managed users and SCIM | Read the configuration guide for your identity provider; draw the flow from group assignment to suspended account |
| Enterprise Server support bundles | Write the commands and options from memory, then check them against the documentation |
| Azure private networking | Read the network configuration steps and list what is created in Azure and what in GitHub |
| Audit log streaming | Open the streaming settings page in a trial without saving, and note each endpoint's required values |
| Large usage reports | Use a fictional report like the one in lesson 8 and practice tracing a spike |
Keeping lab notes useful
Priya kept her lab notes in a private repository in her personal account, one Markdown file per lab, each with the same four headings: what I set, where the setting lives, what changed for the member, and the trap. She linked each trap to the matching row of her error log. On the evening before each timed set in January, the plan was to read only the trap lines, about a page in total, which took ten minutes and covered the mistakes that had cost her marks before.
Common mistakes
MistakePracticing in a production enterprise or organization.
InsteadUse a trial or test enterprise with dummy repositories, accounts and secrets.
MistakeUsing real credentials to test push protection.
InsteadUse a custom pattern and an invented value.
MistakeReading settings pages without changing anything.
InsteadChange a setting and observe the effect from both the owner's and the member's side.
MistakeSkipping monitoring labs because there is little usage in a trial.
InsteadRead the report columns and settings; the structure is what the exam asks about.
Summary and key terms
- Practice in an Enterprise Cloud trial or test enterprise with dummy data, not in production.
- A personal account trial covers most objectives; managed users need an identity provider with SCIM.
- Twelve labs cover every domain: roles, identity settings, licenses, support evidence, policies and rulesets, tokens and apps, security configurations, audit log, Actions policies, runners and secrets, usage and budgets, and API activity.
- Observe each setting from both sides: the owner who sets it and the member it affects.
- Write one sentence per lab naming the wrong idea it corrected.
- Trial enterprise
- A time-limited Enterprise Cloud account used for evaluation or practice.
- Evaluate mode
- A ruleset enforcement status that records what would have been blocked without blocking it.
- Custom secret pattern
- A regular expression that teaches secret scanning to recognize an organization-specific secret format.
- Ephemeral runner
- A self-hosted runner that takes one job and is then removed.
- Dummy secret
- An invented value used to test secret handling safely.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why is a personal account trial easier for practice than a managed user enterprise?
Show answer
Managed users need an identity provider configured for SCIM before anyone can sign in.
How can you test push protection without risking a real credential?
Show answer
Create a custom pattern for an invented format and push a fake value.
A job in another organization waits for your self-hosted runner. What do you check first?
Show answer
Whether the runner group is shared with that organization and repository, and any workflow restriction.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.