Loading tutorials
uses: line in a workflow names code that GitHub runs on your behalf. This chapter shows how to read that line, what each part resolves to, and which parts you control.2 min readuses: owner/repo@v4 form is a moving target, and what an attacker can do with that.3 min readuses:. It also assumes you know that a Git tag is a named pointer to a commit. The previous chapter showed that a tag such as v4 can be moved. Here you fix that by referencing a commit directly.3 min readgit installed and, optionally, the GitHub CLI (gh). By the end you will be able to turn a version such as v4.2.2 into the commit SHA that goes in uses:, and check that the SHA is the right 3 min readuses: references an action, and understand the difference between a Git tag and a commit. It also assumes you have seen why a full-length commit SHA is safer than a tag. Here the focus is on the cost of that safety: a 40-character hash t3 min readuses: can point to a tag, branch, or commit SHA, and have seen how SHA pinning works. It also assumes you have admin rights on a repository or organization, since only admins can change these settings.3 min readuses: step, and know what a composite action is. It covers the references your pin does not control.2 min readuses: references an action, and have used a lockfile such as package-lock.json or requirements.txt with hashes. The previous chapters covered pinning by hand. Here you learn what a lockfile adds, before the next chapter sho3 min readpackage-lock.json. It covers the day-to-day routine of a workflow lockfile.3 min readuses: lines, know that a commit SHA identifies one commit, and have pinned an action to a full-length SHA as covered earlier. It explains a gap in that technique: a pinned SHA can point to a commit that does not belong to the repository named in the r3 min readuses: appears in both steps and jobs, and have pinned an action to a commit SHA as in earlier chapters. Here you apply the same idea to two other reference types: reusable workflows and Docker images.3 min readuses: references resolve, how to pin to a full-length commit SHA, how Dependabot updates pins, and what a workflow lockfile records. Here you compare the options and learn where each one stops protecting you.3 min read