Skip to content

Commit e9d0a51

Browse files
authored
Update knowledge-check.yml
1 parent 9a5f93a commit e9d0a51

File tree

1 file changed

+72
-107
lines changed

1 file changed

+72
-107
lines changed

learn-pr/github/manage-github-actions-enterprise/knowledge-check.yml

Lines changed: 72 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -14,84 +14,6 @@ content: |
1414
quiz:
1515
title: Check your knowledge
1616
questions:
17-
18-
- content: "What actions can you take at enterprise level to manage the use of GitHub Actions in your enterprise instance?"
19-
choices:
20-
- content: "Create workflow templates"
21-
isCorrect: false
22-
explanation: "Incorrect. Workflow templates are created at organizational level."
23-
- content: "Configure a GitHub Actions use policy"
24-
isCorrect: true
25-
explanation: "Correct. GitHub Actions use policies enable you to restrict access to GitHub Actions to specific organizations in your instance."
26-
- content: "Manually sync public actions in Enterprise Cloud"
27-
isCorrect: false
28-
explanation: "Incorrect. Public actions are automatically synced in Enterprise Cloud. Only with Enterprise Server do you have the possibility to manually sync public actions instead of automatically."
29-
- content: "What actions can you take to configure self-hosted runners for your enterprise use?"
30-
choices:
31-
- content: "Create and add custom labels to your runners"
32-
isCorrect: true
33-
explanation: "Correct. Custom labels can be used when you need to run jobs on runners that have specific capabilities."
34-
- content: "Add proxy configurations to your runners after they start."
35-
isCorrect: false
36-
explanation: "Incorrect. If you need a self-hosted runner to communicate with GitHub via a proxy server, you must add all proxy configurations to your runner before starting it."
37-
- content: "Add the IP address or IP address range of your runners at repository level."
38-
isCorrect: false
39-
explanation: "Incorrect. If your organization has configured an IP allowlist, you must add the IP address or IP address range of your self-hosted runners to the IP allowlist. IP allowlists are found in an organization's Settings."
40-
- content: "What are encrypted secrets?"
41-
choices:
42-
- content: "Encrypted secrets are authentication tokens you can generate in your account settings."
43-
isCorrect: false
44-
explanation: "Incorrect. The authentication tokens you can create in your account settings are personal access tokens (PATs)."
45-
- content: "Encrypted secrets are the equivalent of SSH keys in GitHub."
46-
isCorrect: false
47-
explanation: "Incorrect. SSH keys are also called SSH keys in GitHub."
48-
- content: "Encrypted secrets are encrypted environment variables you can create to store sensitive information."
49-
isCorrect: true
50-
explanation: "Correct. Once created, encrypted secrets become available for use in your workflows and actions at the level at which they were created (organization, repository, or environment)."
51-
- content: "Which credential type poses the greatest security risk if used to access repositories from GitHub Actions??"
52-
choices:
53-
- content: "Repository deploy keys"
54-
isCorrect: false
55-
explanation: "Incorrect. Repository deploy keys are actually recommended as they grant access only to a single repository."
56-
- content: "Personal access token (classic)"
57-
isCorrect: true
58-
explanation: "Correct. Personal access tokens (classic) grant broad access to all repositories you have access to, creating unnecessary security risks."
59-
- content: "GitHub App tokens"
60-
isCorrect: false
61-
explanation: "Incorrect. GitHub App tokens provide granular permissions and are recommended for cross-repository access."
62-
- content: "GITHUB_TOKEN"
63-
isCorrect: false
64-
explanation: "Incorrect. GITHUB_TOKEN is not recommended as it's intentionally scoped to a single repository."
65-
- content: "Which feature in GitHub allows you to enforce that automated tests must pass before code can be merged to the main branch?"
66-
choices:
67-
- content: "Organization secrets"
68-
isCorrect: false
69-
explanation: "Incorrect. Organization secrets store sensitive information like API keys and credentials for use in GitHub Actions workflows. While important for security, they don't enforce automated test requirements before merging code."
70-
- content: "Repository rule sets"
71-
isCorrect: true
72-
explanation: "Correct. Repository rule sets allow you to enforce policies across branches, including requiring status checks (which represent automated tests) to pass before merging. As stated in the content: \"Rule Sets can enforce that certain Actions (e.g., tests) must pass before merges\" and under Components of Rule Sets, it mentions \"Require status checks to pass before merging\" as a Pull Request Requirement."
73-
- content: "Workflow templates"
74-
isCorrect: false
75-
explanation: "Incorrect. Workflow templates help standardize automation across an organization by providing predefined workflow structures, but they don't enforce that those workflows must pass before merging. They simply make it easier to create consistent workflows."
76-
- content: "Runner groups"
77-
isCorrect: false
78-
explanation: "Incorrect. Runner groups organize self-hosted runners in GitHub Actions, allowing you to control which repositories can use specific runners. They don't enforce test requirements before merging code."
79-
80-
- content: "Which of the following is a feature unique to GitHub Enterprise Cloud (GHEC)?"
81-
choices:
82-
- content: "Requires on-premises deployment and infrastructure management"
83-
isCorrect: false
84-
explanation: "Incorrect. This describes GitHub Enterprise Server (GHES), not GHEC. GHEC is hosted and managed by GitHub in the cloud."
85-
- content: "Provides centralized user management with identity provider integration"
86-
isCorrect: true
87-
explanation: "GHEC supports centralized user management and integrates with identity providers using SAML (for SSO) and SCIM (for user provisioning), which is a key feature of cloud-hosted enterprise solutions."
88-
- content: "Must be installed and maintained by the organization's IT team"
89-
isCorrect: false
90-
explanation: "Incorrect. GHEC is maintained by GitHub and requires no installation or infrastructure management by the organization."
91-
- content: "Operates entirely within a private cloud environment"
92-
isCorrect: false
93-
explanation: "Incorrect. GHEC operates in GitHub’s public cloud infrastructure, not a private cloud."
94-
9517
- content: "What actions can you take at enterprise level to manage the use of GitHub Actions in your enterprise instance?"
9618
choices:
9719
- content: "Create workflow templates"
@@ -126,51 +48,94 @@ quiz:
12648
explanation: "Incorrect. SSH keys are also called SSH keys in GitHub."
12749
- content: "Encrypted secrets are encrypted environment variables you can create to store sensitive information."
12850
isCorrect: true
129-
explanation: "Correct. Once created, encrypted secrets become available for use in your workflows and actions at the level at which they were created (organization or repository)."
51+
explanation: "Correct. Once created, encrypted secrets become available for use in your workflows and actions at the level at which they were created (organization, repository, or environment)."
13052

131-
- content: What is a key benefit of using **reusable workflows** in GitHub Actions?
53+
- content: "Which credential type poses the greatest security risk if used to access repositories from GitHub Actions?"
13254
choices:
133-
- content: Prevents any external contributors from running workflows
55+
- content: "Repository deploy keys"
13456
isCorrect: false
135-
explanation: Reusable workflows improve standardization, but they do not automatically block external contributors. Security settings must be configured separately.
136-
- content: Reduces redundancy and maintenance overhead
57+
explanation: "Incorrect. Repository deploy keys are actually recommended as they grant access only to a single repository."
58+
- content: "Personal access token (classic)"
13759
isCorrect: true
138-
explanation: Reusable workflows help avoid repetitive configuration across multiple repositories, reducing maintenance effort.
139-
- content: Can only be used in the same repository where they are defined
60+
explanation: "Correct. Personal access tokens (classic) grant broad access to all repositories you have access to, creating unnecessary security risks."
61+
- content: "GitHub App tokens"
14062
isCorrect: false
141-
explanation: Reusable workflows can be referenced from a different repository, allowing broader reuse.
142-
- content: Automatically restricts all workflows to internal users
63+
explanation: "Incorrect. GitHub App tokens provide granular permissions and are recommended for cross-repository access."
64+
- content: "GITHUB_TOKEN"
14365
isCorrect: false
144-
explanation: GitHub does not enforce internal-only workflow execution unless explicitly configured.
66+
explanation: "Incorrect. GITHUB_TOKEN is not recommended as it's intentionally scoped to a single repository."
14567

146-
- content: What is a primary benefit of using **GitHub-hosted runners** instead of self-hosted runners?
68+
- content: "Which feature in GitHub allows you to enforce that automated tests must pass before code can be merged to the main branch?"
14769
choices:
148-
- content: Full control over hardware and software configuration
149-
isCorrect: false
150-
explanation: Full control is a feature of self-hosted runners.
151-
- content: Ability to access internal/private networks
70+
- content: "Organization secrets"
15271
isCorrect: false
153-
explanation: GitHub-hosted runners do not have direct access to internal networks.
154-
- content: Automatic updates for the OS and preinstalled packages
72+
explanation: "Incorrect. Organization secrets store sensitive information like API keys and credentials for use in GitHub Actions workflows. While important for security, they don't enforce automated test requirements before merging code."
73+
- content: "Repository rule sets"
15574
isCorrect: true
156-
explanation: GitHub-hosted runners are automatically updated by GitHub, including OS patches and preinstalled tools.
157-
- content: Custom installation of non-standard software
75+
explanation: "Correct. Repository rule sets allow you to enforce policies across branches, including requiring status checks (which represent automated tests) to pass before merging."
76+
- content: "Workflow templates"
15877
isCorrect: false
159-
explanation: Custom installation is supported with self-hosted runners, not GitHub-hosted ones.
78+
explanation: "Incorrect. Workflow templates help standardize automation across an organization by providing predefined workflow structures, but they don't enforce that those workflows must pass before merging."
79+
- content: "Runner groups"
80+
isCorrect: false
81+
explanation: "Incorrect. Runner groups organize self-hosted runners but don’t enforce test requirements before merging code."
16082

161-
- content: What is the best practice when managing **encrypted secrets** in GitHub Actions?
83+
- content: "Which of the following is a feature unique to GitHub Enterprise Cloud (GHEC)?"
16284
choices:
163-
- content: Print secrets in workflow logs to assist with debugging
85+
- content: "Requires on-premises deployment and infrastructure management"
86+
isCorrect: false
87+
explanation: "Incorrect. This describes GitHub Enterprise Server (GHES), not GHEC."
88+
- content: "Provides centralized user management with identity provider integration"
89+
isCorrect: true
90+
explanation: "Correct. GHEC supports centralized user management and integrates with identity providers using SAML and SCIM."
91+
- content: "Must be installed and maintained by the organization's IT team"
16492
isCorrect: false
165-
explanation: Secrets should never be exposed in logs.
166-
- content: Use the same secret across all repositories for consistency
93+
explanation: "Incorrect. GHEC is maintained by GitHub and requires no installation or infrastructure management."
94+
- content: "Operates entirely within a private cloud environment"
16795
isCorrect: false
168-
explanation: Sharing the same secret increases security risk and violates the principle of least privilege.
169-
- content: Limit access by defining secrets at the lowest necessary level
96+
explanation: "Incorrect. GHEC operates in GitHub’s public cloud infrastructure."
97+
98+
- content: "What is a key benefit of using **reusable workflows** in GitHub Actions?"
99+
choices:
100+
- content: "Prevents any external contributors from running workflows"
101+
isCorrect: false
102+
explanation: "Incorrect. Security settings must be configured separately."
103+
- content: "Reduces redundancy and maintenance overhead"
170104
isCorrect: true
171-
explanation: Scoping secrets appropriately minimizes exposure and enhances security.
172-
- content: Store secrets in the GitHub Actions log archive
105+
explanation: "Correct. Reusable workflows help avoid repetitive configuration across multiple repositories."
106+
- content: "Can only be used in the same repository where they are defined"
173107
isCorrect: false
174-
explanation: Storing secrets in logs is unsafe and not a recommended practice.
108+
explanation: "Incorrect. Reusable workflows can be referenced from other repositories."
109+
- content: "Automatically restricts all workflows to internal users"
110+
isCorrect: false
111+
explanation: "Incorrect. This must be explicitly configured."
175112

113+
- content: "What is a primary benefit of using **GitHub-hosted runners** instead of self-hosted runners?"
114+
choices:
115+
- content: "Full control over hardware and software configuration"
116+
isCorrect: false
117+
explanation: "Incorrect. That’s a benefit of self-hosted runners."
118+
- content: "Ability to access internal/private networks"
119+
isCorrect: false
120+
explanation: "Incorrect. GitHub-hosted runners lack access to internal networks."
121+
- content: "Automatic updates for the OS and preinstalled packages"
122+
isCorrect: true
123+
explanation: "Correct. GitHub-hosted runners are maintained and updated by GitHub."
124+
- content: "Custom installation of non-standard software"
125+
isCorrect: false
126+
explanation: "Incorrect. That’s supported in self-hosted runners."
176127

128+
- content: "What is the best practice when managing **encrypted secrets** in GitHub Actions?"
129+
choices:
130+
- content: "Print secrets in workflow logs to assist with debugging"
131+
isCorrect: false
132+
explanation: "Incorrect. Secrets should never be exposed in logs."
133+
- content: "Use the same secret across all repositories for consistency"
134+
isCorrect: false
135+
explanation: "Incorrect. It violates the principle of least privilege."
136+
- content: "Limit access by defining secrets at the lowest necessary level"
137+
isCorrect: true
138+
explanation: "Correct. This minimizes exposure and enhances security."
139+
- content: "Store secrets in the GitHub Actions log archive"
140+
isCorrect: false
141+
explanation: "Incorrect. Storing secrets in logs is unsafe and discouraged."

0 commit comments

Comments
 (0)