Sub topic 2
Finding actions in the GitHub Marketplace
This chapter assumes you can read a workflow file and know that a step either runs a shell command with run or calls an action with uses. Here you will learn where to look for actions, how to compare candidates, and what a listing page tells you. The next chapter covers the exact syntax of a uses reference.
Where actions come from
A step can use an action from three places:
- A public repository on GitHub, referenced as
owner/repo@ref. - The same repository or another repository you can access, referenced by path.
- A Docker Hub image.
The GitHub Marketplace is a searchable catalog of the first kind. A repository appears there only if its owner chose to publish it. Many usable actions are not listed, and a listing does not mean GitHub has reviewed the code.
Searching the Marketplace
Open https://github.com/marketplace?type=actions. The type=actions filter hides GitHub Apps, which are a different kind of product. You can also reach the catalog from the workflow editor on github.com, where a sidebar lets you search and insert an action without leaving the file.
Use these tools to narrow the results:
- Keyword search. Search for the task, such as
setup python,deploy pages, orlint markdown, rather than for a vendor name. - Categories. Browse groups such as continuous integration, deployment, or code quality when you are not sure what to type.
- Verified creator filter. A badge marks actions published by an organization whose identity GitHub has verified. The badge says who the publisher is. It does not say the code is safe.
Search results are ordered by relevance, so a popular action is not always the best fit. Open several candidates and compare them.
Reading a listing page
Each listing page shows the same core information. Check these items first.
| Item | What it tells you |
|---|---|
| README | Purpose, supported inputs and outputs, and usage examples |
| Latest version and release list | How actively the action is released and which tags exist |
| Usage snippet | A `uses` line you can copy into a workflow |
| Repository link | The source code, issues, and commit history |
| Stars and contributors | Rough adoption, which is a weak signal on its own |
| Creator and verified badge | Who maintains the action |
The usage snippet is a convenient starting point, but it normally points at a tag such as @v4. Whether a tag is the right choice is a separate decision, covered in the chapters on versioning and vetting.
A search workflow
The following diagram shows a reasonable order of steps when you need an action for a new task.
From listing to workflow
Suppose you search for a way to install Node.js and find actions/setup-node. The listing shows a README with an inputs section, including node-version and cache. You copy the snippet and adjust the inputs:
name: Search example
on: [push]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: node --versionTest a new action on a branch, not on your main branch. Read the job log: GitHub prints the action reference it resolved at the start of each step group, so you can confirm that it fetched the version you expected.
Comparing similar actions
Several actions often solve the same problem. When you must choose, compare these points:
- Maintenance. Look at the date of the last release and whether issues receive replies.
- Scope. An action that does exactly one job is easier to review than one that bundles many.
- Alternatives. If the same result needs only two shell commands, a
runstep may be simpler and has no third-party code to review. - Runner support. Check the README for the operating systems it supports. Some actions work only on Linux runners.
Exercise
You search the Marketplace and find two actions that both upload test reports. One has many stars but its last release was three years ago. The other has few stars, is published by a verified creator, and released last month. Name two things you would check before choosing, and say where on the listing you would find each.
Show answer
Check maintenance and fit. The release list and repository commit history show whether the action is still updated. The README shows the inputs and supported runners, so you can confirm it does what you need. You would also read the repository source before adding it, because stars and badges do not show what the code does.