Skip to content

Commit 69443fb

Browse files
authored
Update knowledge-check.yml
1 parent e9d0a51 commit 69443fb

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

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

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -33,109 +33,109 @@ quiz:
3333
explanation: "Correct. Custom labels can be used when you need to run jobs on runners that have specific capabilities."
3434
- content: "Add proxy configurations to your runners after they start."
3535
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."
36+
explanation: "Incorrect. You must add all proxy configurations to your runner before starting it."
3737
- content: "Add the IP address or IP address range of your runners at repository level."
3838
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."
39+
explanation: "Incorrect. This is managed at the organization level in IP allowlists."
4040

4141
- content: "What are encrypted secrets?"
4242
choices:
43-
- content: "Encrypted secrets are authentication tokens you can generate in your account settings."
43+
- content: "Authentication tokens you can generate in your account settings."
4444
isCorrect: false
45-
explanation: "Incorrect. The authentication tokens you can create in your account settings are personal access tokens (PATs)."
46-
- content: "Encrypted secrets are the equivalent of SSH keys in GitHub."
45+
explanation: "Incorrect. Those are personal access tokens (PATs)."
46+
- content: "The equivalent of SSH keys in GitHub."
4747
isCorrect: false
48-
explanation: "Incorrect. SSH keys are also called SSH keys in GitHub."
49-
- content: "Encrypted secrets are encrypted environment variables you can create to store sensitive information."
48+
explanation: "Incorrect. SSH keys are separate and named accordingly."
49+
- content: "Encrypted environment variables for storing sensitive information."
5050
isCorrect: true
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)."
51+
explanation: "Correct. They are secure and can be scoped by repo, org, or environment."
5252

53-
- content: "Which credential type poses the greatest security risk if used to access repositories from GitHub Actions?"
53+
- content: "Which credential type poses the greatest security risk if used in GitHub Actions?"
5454
choices:
5555
- content: "Repository deploy keys"
5656
isCorrect: false
57-
explanation: "Incorrect. Repository deploy keys are actually recommended as they grant access only to a single repository."
57+
explanation: "Incorrect. These are scoped and safer for single-repo use."
5858
- content: "Personal access token (classic)"
5959
isCorrect: true
60-
explanation: "Correct. Personal access tokens (classic) grant broad access to all repositories you have access to, creating unnecessary security risks."
60+
explanation: "Correct. These have broad access, making them riskier."
6161
- content: "GitHub App tokens"
6262
isCorrect: false
63-
explanation: "Incorrect. GitHub App tokens provide granular permissions and are recommended for cross-repository access."
63+
explanation: "Incorrect. These are more granular and preferred for security."
6464
- content: "GITHUB_TOKEN"
6565
isCorrect: false
66-
explanation: "Incorrect. GITHUB_TOKEN is not recommended as it's intentionally scoped to a single repository."
66+
explanation: "Incorrect. It's scoped and automatically managed."
6767

68-
- content: "Which feature in GitHub allows you to enforce that automated tests must pass before code can be merged to the main branch?"
68+
- content: "Which feature enforces that tests pass before code can be merged?"
6969
choices:
7070
- content: "Organization secrets"
7171
isCorrect: false
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."
72+
explanation: "Incorrect. They handle credentials, not enforcement of tests."
7373
- content: "Repository rule sets"
7474
isCorrect: true
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."
75+
explanation: "Correct. Rule sets can enforce status checks before merges."
7676
- content: "Workflow templates"
7777
isCorrect: false
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."
78+
explanation: "Incorrect. These aid reuse, not enforcement."
7979
- content: "Runner groups"
8080
isCorrect: false
81-
explanation: "Incorrect. Runner groups organize self-hosted runners but don’t enforce test requirements before merging code."
81+
explanation: "Incorrect. They help manage runners, not enforce rules."
8282

83-
- content: "Which of the following is a feature unique to GitHub Enterprise Cloud (GHEC)?"
83+
- content: "Which of the following is unique to GitHub Enterprise Cloud (GHEC)?"
8484
choices:
85-
- content: "Requires on-premises deployment and infrastructure management"
85+
- content: "Requires on-premises infrastructure"
8686
isCorrect: false
87-
explanation: "Incorrect. This describes GitHub Enterprise Server (GHES), not GHEC."
88-
- content: "Provides centralized user management with identity provider integration"
87+
explanation: "Incorrect. That describes GitHub Enterprise Server."
88+
- content: "Centralized user management with identity provider integration"
8989
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"
90+
explanation: "Correct. GHEC integrates with identity providers like SAML."
91+
- content: "Must be installed by IT teams"
9292
isCorrect: false
93-
explanation: "Incorrect. GHEC is maintained by GitHub and requires no installation or infrastructure management."
94-
- content: "Operates entirely within a private cloud environment"
93+
explanation: "Incorrect. GHEC is hosted and managed by GitHub."
94+
- content: "Runs in a private cloud"
9595
isCorrect: false
96-
explanation: "Incorrect. GHEC operates in GitHub’s public cloud infrastructure."
96+
explanation: "Incorrect. GHEC runs on GitHub’s public cloud."
9797

98-
- content: "What is a key benefit of using **reusable workflows** in GitHub Actions?"
98+
- content: "What is a key benefit of using reusable workflows?"
9999
choices:
100-
- content: "Prevents any external contributors from running workflows"
100+
- content: "Blocks external contributors automatically"
101101
isCorrect: false
102-
explanation: "Incorrect. Security settings must be configured separately."
102+
explanation: "Incorrect. Security must be separately configured."
103103
- content: "Reduces redundancy and maintenance overhead"
104104
isCorrect: true
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"
105+
explanation: "Correct. Reusable workflows simplify workflow reuse."
106+
- content: "Only usable in the same repository"
107107
isCorrect: false
108-
explanation: "Incorrect. Reusable workflows can be referenced from other repositories."
109-
- content: "Automatically restricts all workflows to internal users"
108+
explanation: "Incorrect. They can be reused across repositories."
109+
- content: "Restricts workflows to internal users"
110110
isCorrect: false
111-
explanation: "Incorrect. This must be explicitly configured."
111+
explanation: "Incorrect. This is configurable, not default."
112112

113-
- content: "What is a primary benefit of using **GitHub-hosted runners** instead of self-hosted runners?"
113+
- content: "What is a benefit of using GitHub-hosted runners?"
114114
choices:
115-
- content: "Full control over hardware and software configuration"
115+
- content: "Full control over hardware"
116116
isCorrect: false
117-
explanation: "Incorrect. That’s a benefit of self-hosted runners."
118-
- content: "Ability to access internal/private networks"
117+
explanation: "Incorrect. That’s for self-hosted runners."
118+
- content: "Internal network access"
119119
isCorrect: false
120-
explanation: "Incorrect. GitHub-hosted runners lack access to internal networks."
121-
- content: "Automatic updates for the OS and preinstalled packages"
120+
explanation: "Incorrect. GitHub-hosted runners do not have this."
121+
- content: "Automatic OS and package updates"
122122
isCorrect: true
123-
explanation: "Correct. GitHub-hosted runners are maintained and updated by GitHub."
124-
- content: "Custom installation of non-standard software"
123+
explanation: "Correct. GitHub maintains hosted runner environments."
124+
- content: "Install custom software"
125125
isCorrect: false
126-
explanation: "Incorrect. That’s supported in self-hosted runners."
126+
explanation: "Incorrect. That’s supported on self-hosted runners."
127127

128-
- content: "What is the best practice when managing **encrypted secrets** in GitHub Actions?"
128+
- content: "What is a best practice for managing encrypted secrets?"
129129
choices:
130-
- content: "Print secrets in workflow logs to assist with debugging"
130+
- content: "Print them in logs for debugging"
131131
isCorrect: false
132-
explanation: "Incorrect. Secrets should never be exposed in logs."
133-
- content: "Use the same secret across all repositories for consistency"
132+
explanation: "Incorrect. Never expose secrets in logs."
133+
- content: "Reuse the same secret across all repos"
134134
isCorrect: false
135-
explanation: "Incorrect. It violates the principle of least privilege."
136-
- content: "Limit access by defining secrets at the lowest necessary level"
135+
explanation: "Incorrect. This increases risk."
136+
- content: "Scope secrets to the lowest level needed"
137137
isCorrect: true
138-
explanation: "Correct. This minimizes exposure and enhances security."
139-
- content: "Store secrets in the GitHub Actions log archive"
138+
explanation: "Correct. This limits exposure."
139+
- content: "Store secrets in archived workflow logs"
140140
isCorrect: false
141-
explanation: "Incorrect. Storing secrets in logs is unsafe and discouraged."
141+
explanation: "Incorrect. That’s a security vulnerability."

0 commit comments

Comments
 (0)