AI Hints
Home›CI/CD with GitHub Actions Tutorial›Writing Your Own Actions
CI/CD with GitHub Actions · Lesson 105 of 138

Marketplace Actions

Using what others built.

⏱ 2 min read▶ Video at 2:02:06🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

The GitHub Marketplace has thousands of actions. Setting up languages, caching, deploying to clouds, posting to chat. Using one saves time, but it's also code from a stranger, running with access to your repository.

Marketplace Actions
From the video: Marketplace Actions
  • Thousands of actions
  • Saves time
  • Code from a stranger

Choosing an action

Prefer actions from GitHub itself, or from the tool's own company, like docker or aws actions. Look for the verified creator badge. Check that it's maintained, with recent releases. And read what it does, especially if it touches secrets.

keyvalue
Official firstactions/, docker/, aws-actions/
Verified badgeknown publisher
Maintainedrecent releases
Read the codewhat does it touch?

A few actions appear in almost every pipeline. Checkout gets the code. The setup actions install languages. Cache and upload artifact store files. And the docker actions build and push images.

ActionDoes
actions/checkoutget the code
actions/setup-python, setup-nodeinstall a language
actions/cache, upload-artifactstore files
docker/build-push-actionbuild images

Reading an action

Before using an action, open its repository, and read its action dot y m l. The inputs section lists every option, with descriptions and defaults. Outputs lists what it gives back. And runs shows whether it's JavaScript, Docker, or composite, and which file actually runs.

keyvalue
inputsoptions and defaults
outputsvalues it returns
runs.usingnode, docker, composite
READMEexamples

Summary

Marketplace actions save time, but they're someone else's code. Prefer official, verified, maintained actions. Next, pinning them, so they can't change under you.

Key takeaways
  • Official first
  • Verified creators
  • Read before use
Next up: Pinning Actions — versions you trust