---
title: "An action's tag moved after your run. Which code did the run execute? | Proofline"
description: "A step written as uses: owner/action@v4 runs whatever commit the tag names when the job starts."
url: https://proofline.sh/learn/action-tag-moved-which-code-ran/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# An action's tag moved after your run. Which code did the run execute?

A step written as uses: owner/action@v4 runs whatever commit the tag names when the job starts. Two runs of the same workflow file can execute different action code. The job's "Set up job" log records the commit each tag resolved to. Read that line for the run you rely on, compare it with the commit you trust, and pin full commit SHAs so the next run cannot drift.

Broken dependencies The Proofline team December 2, 2026 3 min read

## Why the workflow file is not enough

GitHub's lockfile documentation states the rule directly: without a lock, "GitHub Actions resolves that reference to whatever commit the tag or branch points to at run time." [Workflow dependency lockfiles](https://docs.github.com/en/actions/concepts/security/workflow-dependency-lockfiles)

A Git tag can be force-pushed. The [secure use reference](https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions) warns that "a tag can be moved or deleted if a bad actor gains access to the repository storing the action". This happened to `tj-actions/changed-files` in March 2025: "Attackers retroactively modified multiple version tags to reference a malicious commit, exposing CI/CD secrets in workflow logs". [GHSA-mrrh-fwg8-r2c3](https://github.com/advisories/GHSA-mrrh-fwg8-r2c3)

Moving a major tag is also routine maintenance. GitHub's [release guidance for action authors](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/using-immutable-releases-and-tags-to-manage-your-actions-releases) tells them to update the major version tag to the latest minor or patch release. A moved tag is the normal case, and an attack is one cause among several.

## What a moved tag looks like

This fixture uses a local bare repository as the action's repository. The maintainer tags `v4`, then force-pushes `v4` to a new commit:

```
$ git ls-remote origin refs/tags/v4   # Monday's run resolves
aca431d728860b65165ce85ea3d81dc911aa514d	refs/tags/v4
$ git ls-remote origin refs/tags/v4   # Tuesday's run resolves
7a4d6b808d515f1b046d57f6843f65c9428a9d53	refs/tags/v4
$ git fetch origin aca431d728860b65165ce85ea3d81dc911aa514d && git rev-parse FETCH_HEAD   # a pinned SHA
aca431d728860b65165ce85ea3d81dc911aa514d
```

Both runs would show `@v4` in the workflow file and on the run page. Only the resolved commit tells them apart.

## Read the resolution from the run

The runner writes one line per action in the "Set up job" step. These lines come from a public job run on 2 December 2026:

```
Download action repository 'actions/checkout@v7' (SHA:3d3c42e5aac5ba805825da76410c181273ba90b1)
Download action repository 'actions/setup-python@v6' (SHA:ece7cb06caefa5fff74198d8649806c4678c61a1)
```

The runner downloads every action in the job when it starts, so a line also appears for a step that was later skipped; read the step's own log to see it ran. To pull the lines from your own job, download its log:

```
gh api repos/OWNER/REPO/actions/jobs/JOB_ID/logs | grep 'Download action repository'
```

Logs follow the repository's retention period, which defaults to 90 days. [Retention for artifacts and logs](https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization) Save these lines with the evidence if the run must be explained later.

## What the SHA line settles

| You see | It shows | It does not show |
| --- | --- | --- |
| The SHA matches the commit you reviewed | The action's code was that commit | The code of an action that it downloads at run time, or its container image |
| The SHA differs from today's tag | The tag moved since that run | Whether the move was a release or an attack |
| `uses:` already names a full SHA | Every run used that commit | Transitive actions, which the lockfile covers |

A composite action can call other actions by tag, so pinning the top-level action does not pin what it calls. GitHub's lockfile, generated with the `gh actions-lock` extension, also pins those transitive dependencies. It does not pin reusable workflows called with `jobs.<job_id>.uses`, and it does not control the runner image. [Workflow dependency lockfiles](https://docs.github.com/en/actions/concepts/security/workflow-dependency-lockfiles)

## Pin the commit you reviewed

Write the full SHA and keep the tag as a comment so updates stay readable:

```
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
```

The runner image is the other input the workflow file does not fix. See [the runner image changed between two runs](/learn/runner-image-version-changed/) and [protecting release tags](/learn/protect-release-tags/). Return to [handing over evidence](/learn/engineering-handoff-evidence/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [How do you stop a release tag from being moved or deleted?](/learn/protect-release-tags/)
    
    Code review The Proofline team November 23, 2026 4 min read
    
-   ### [The runner image changed between two runs. Is the old green still evidence?](/learn/runner-image-version-changed/)
    
    Code review The Proofline team December 2, 2026 3 min read
