A GitHub Action pinned to a floating tag — something like uses: some-org/some-action@v2 — looks like a dependency declaration, but it behaves like a standing, unreviewed grant of access to your build. The tag v2 is not a version, it is a pointer the publisher can move at any time to point at a different commit. When your workflow runs, it fetches whatever that pointer currently resolves to, with whatever permissions your workflow has: repository contents, secrets, sometimes the ability to push tags or publish releases. You reviewed the action once, maybe, when you added it. You did not review what it does today.
The same problem wearing different clothes
This is the access-control problem again, just dressed as a build step instead of a login screen. Whether the entity touching your systems is a person with a password, a service account with an API key, or a third-party Action with a workflow token, the question is identical: what can this thing do, and did anyone actually approve what it is doing right now, versus what it was doing when it was first granted access? A floating tag answers that question with "we approved it once and never looked again," which is the same failure mode as a human account that was granted admin for a project three years ago and never had its access reviewed since.
Picture a team that added a popular linting Action two years ago, pinned to @v1, and has not touched that line of YAML since. The Action's maintainer gets compromised, or simply makes a change that silently expands what the Action does — fetching an extra file, phoning home with repo metadata, whatever. Nobody on the team sees a diff, because nobody re-reviews a tag that already exists in their workflow file. The next build just runs it. The team's actual security review happened against code that no longer exists at that tag, and they have no way of knowing that without going and checking the commit history of someone else's repository, which almost nobody does as a matter of routine.
The fix is mechanically simple and almost always skipped because it is mildly annoying: pin to a full commit SHA, not a tag. uses: some-org/some-action@a1b2c3d... is immutable — that SHA points at exactly one commit, forever, and if the publisher wants you to pick up a change, you have to go and update the SHA yourself, at which point you can actually look at what changed. Tools exist to automate the bump and even to diff the new commit against the old one before you accept it, which turns an invisible, automatic trust extension into a reviewed, deliberate one. The annoyance is the point: it reintroduces the review step that a floating tag quietly removed.
The same discipline applies to the permissions block in the workflow itself. A workflow that grants contents: write and secrets access to every Action it calls, by default, because scoping permissions per-job is one more line of YAML nobody got around to writing, is giving every dependency in that build the same blast radius as the most trusted one. Least privilege is not a PAM slogan reserved for human admins and service accounts — it applies just as directly to a third-party binary your CI pipeline executes automatically on every push, with a token that can write back to your repository.
None of this requires treating every Action as hostile. It requires treating build-time code execution as what it is: an access grant, not a configuration detail. A floating tag is convenient precisely because it hides that fact — it reads as "use whatever the maintainer currently publishes," which sounds reasonable until you say it out loud as "grant this unknown future commit the same access as the last reviewed one." Building software and controlling access to it have never been separate disciplines. A CI pipeline that runs unpinned dependencies with broad tokens has already decided, by default, that the answer to "who can touch this system" includes anyone who can push to someone else's tag.