GITHUB-ACTIONS practice question 2 of 15

Which default GitHub environment variable indicates the owner and repository name?

Full set: 72 questions
Answer options
A: REPOSITORY NAME Correct answer
B: GITHUB REPOSITORY
C: ENV REPOSITORY
D: GITHUB WORKFLOW REPO
Correct Answer:
A. REPOSITORY NAME
Explanation

The GITHUB_REPOSITORY environment variable contains the owner and repository name in the format owner/repository. It is automatically provided by GitHub Actions and can be used to reference the repository in workflows.

Scroll to Top