D4: Self-Hosted Runner Security & Operations
GH-200 GitHub Actions exam practice questions · 10 flashcards
Question
Self-hosted runner risks?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Self-Hosted Runner Security & Operations practice questions and answers
- Self-hosted runner risks?Persistent state, credential leakage, untrusted code execution, lateral network access.
- Mitigations?Ephemeral runners, isolated networks, minimal permissions, no public repos, regular patching.
- Runner registration?./config.sh with URL and registration token; run as service.
- Removing runners?./config.sh remove or delete in settings.
- Runner auto-update?Runner updates itself; disable only with managed updates process.
- Pre/post job scripts?ACTIONS_RUNNER_HOOK_JOB_STARTED/COMPLETED for cleanup or checks.
- Proxy configuration?http_proxy/https_proxy/no_proxy env or .env file.
- Labels: default ones?self-hosted, OS (linux/windows/macOS), architecture (x64/ARM64).
- Runner work folder?_work directory holding workspace and tools.
- Scenario: avoid leftover files between jobs on self-hosted runners. Approach?Use ephemeral runners (or cleanup hooks).