Skip to content

Author and maintain actions Questions

Practice questions for Author and maintain actions topic in GitHub Actions. 37 questions covering this domain.

37 questions10 easy18 medium9 hard
Q1
easy

Which list names the three supported custom action types in GitHub Actions?

Q2
hard

An action meets Marketplace requirements except that the repository also contains workflow files. What happens when the publisher tries to list the ac...

Q3
hard

A published action is listed in GitHub Marketplace. The maintainer renames the metadata file from `action.yml` to `my-action.yml`. What is the likely ...

Q4
easy

Which file must exist in the root of an action repository to define inputs, outputs, and how the action runs?

Q5
medium

A composite action declares an input named `config-path`. Inside the action, how should the author reference that input?

Q6
medium

Which statement about Docker container actions is correct?

Q7
medium

An engineer wants a reusable unit that runs a sequence of steps as one step inside many workflows. Which choice fits best?

Q8
hard

A team wants an action that packages its own runtime dependencies inside a container image and can write files that later workflow steps can access in...

Q9
medium

Why do GitHub's JavaScript action docs recommend committing a bundled `dist/index.js` file?

Q10
easy

What must runs.using be for a composite action's metadata?

Q11
medium

A composite action defines an input named config-path. How should the action author read it inside the action?

Q12
medium

An action metadata file marks an input as required: true, but a workflow omits it. What happens by default?

Q13
medium

An author adds runs.pre to a JavaScript action and tests it as a local action in the same repository. Why does the pre script not run?

Q14
medium

How does a composite action expose an output named artifact-id?

Q15
medium

A composite action includes a run step in action.yml. What else must that step specify?

Q16
easy

A JavaScript action should run on Node.js 24. Which runs.using value is correct?

Q17
hard

A published action switches its metadata file name from action.yml to action.yaml between releases. What Marketplace effect is documented?

Q18
hard

A Docker action uses pre-entrypoint and entrypoint. The pre script writes a file outside the workspace, but entrypoint cannot find it. Why?

Q19
medium

A workflow references a local action at ./.github/actions/build-tools, but the step fails before the action loads. What should the team check first?

Q20
medium

A team wants to run a public container image directly as an action step without creating a repository action. Which uses syntax is correct?

Sign in to see all 37 questions

Create a free account to browse all questions — completely free during our launch phase.