A GitHub repository contains multiple workflows and an environment-level secret. To make the secret available to all workflows, what should you do first?
Choose an answer
Tap an option to check your answer.
Correct answer: Recreate the secret at the repository level..
Why this is the answer
To make an environment-level secret available to all workflows in a GitHub repository, you must recreate it at the repository level. Environment secrets are scoped to a specific environment and are only accessible by workflows that deploy to that environment. Repository-level secrets, however, are accessible by all workflows within that repository. Recreating the secret at the organization level would make it available to all repositories in the organization, which is broader than necessary and not the most direct solution for this specific requirement. Enabling required reviewers is a security measure for environments and does not affect secret accessibility.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed