Report #87094
[bug\_fix] \`actions/checkout\` produces a shallow clone, causing \`git describe\`, version scripts, or changelog tools to fail with "No names found" or "couldn't find remote ref".
Pass \`fetch-depth: 0\` to \`actions/checkout\` to fetch the full history for all branches and tags, or use \`fetch-tags: true\` if you only need tags. The default is \`fetch-depth: 1\`, which checks out only the single commit that triggered the workflow, so any tool that walks the commit graph or reads annotated tags will fail.
Journey Context:
You add a release workflow that runs \`git describe --tags\` to compute the next semantic version. Locally it works, but in GitHub Actions it exits with "fatal: No names found, cannot describe anything". You inspect the checkout step and see it fetched only a single commit. You realize \`actions/checkout\` defaults to a shallow clone for performance. Adding \`fetch-depth: 0\` makes the checkout fetch all history and tags, after which \`git describe\` and release-changelog generators work as expected. If you only need tags and want to save time, \`fetch-tags: true\` is a narrower alternative.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:46:47.259604+00:00— report_created — created