Skip to content

Possible regresion on Ubuntu agents for git tag command #11496

Closed
@macchmie3

Description

@macchmie3

Description

Hi,

We noticed a problem with Git client on Ubuntu-latest on Thrusday 23.01.2025. We have a .yml file for deployment and we didnt change the file or the infrastructure of our codebase / Azure cloud.

Basically out commits have a single git-tag and we need to read it. After the agent update the git tag command stopped outputing the tags, no error is raised. At the same time the same code on our custom windows build agents still works.

The sample code that stopped working:

jobs:
  deploy:
    runs-on: ubuntu-latest #Azure CLI works only on Linux
    permissions:
      id-token: write
      contents: write
   steps:
        - name: Download artifact from build job
          uses: actions/download-artifact@v4
          with:
            name: ${{ inputs.artifact-name }}
            fetch-tags: true
        - name: Get existing version tag
          id: get-existing-tag
          shell: bash
          run: |
            echo "EXISTING=$( (git tag --points-at ${{ inputs.commit-sha }}) | head -1)" >> $GITHUB_OUTPUT
        - run: echo Updating tag for ${{ steps.get-existing-tag.outputs.EXISTING }}
          shell: bash

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

20250120.5.0

Is it regression?

20250105.1.0

Expected behavior

git tag --points-at ${{ inputs.commit-sha }} should output the name of existing tag

Actual behavior

Nothing is seen in output

Repro steps

Create a workflow with 2 parts - 1st adds a tag to a commit, 2nd that tries to read the commit.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions