Skip to content

New tags always pushed as Ghost user #34688

Closed
@yaneony

Description

@yaneony

Description

I have created following workflow to deploy new tags. Everything working fine, but, user that create new tag is alway displayed as Ghost.

Image

Here is my workflow:

name: 🚀 Tag and Deploy Application

on:
  push:
    branches:
      - main

concurrency:
  group: ${{ github.ref }}
  cancel-in-progress: false

jobs:
  tag-and-deploy:
    runs-on: debian-node

    steps:
      - name: 📥 Checkout repository
        uses: actions/checkout@v3

      - name: 🛠️ Install dependencies
        run: |
          apt-get update && apt-get install -y jq

      - name: 🔍 Get version and name from package.json
        id: get_version_name
        run: |
          VERSION=$(jq -r .version package.json)
          NAME=$(jq -r .name package.json)
          echo "version=$VERSION" >> $GITHUB_OUTPUT
          echo "name=$NAME" >> $GITHUB_OUTPUT

      - name: 🏷️ Fetch all tags
        run: git fetch --tags

      - name: 🔎 Check if tag exists
        id: check_tag
        run: |
          if git rev-parse "${{ steps.get_version_name.outputs.version }}" >/dev/null 2>&1; then
            echo "deploy_needed=false" >> $GITHUB_OUTPUT
          else
            echo "deploy_needed=true" >> $GITHUB_OUTPUT
          fi

      - name: 🆕 Create and push tag
        if: steps.check_tag.outputs.deploy_needed == 'true'
        run: |
          git config user.name "Gitea Runner"
          git config user.email "gitea.runner@domain.com"
          git tag "${{ steps.get_version_name.outputs.version }}"
          git push origin "${{ steps.get_version_name.outputs.version }}"

I've created new user with username gitea.runner and email gitea.runner@domain.com. Why is it still marked as Ghost user when new tag is being created? Thanks!

Gitea Version

1.24.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 12

How are you running Gitea?

Self hosted in LXC container.

Database

None

Activity

yaneony

yaneony commented on Jun 11, 2025

@yaneony
Author

Oh, I've just found small difference here. When I look in TAGS, then I see following:

Image

But, on Dashboard I see that:

Image

Is that a bug or it should be like that!?!

added this to the 1.24.1 milestone on Jun 11, 2025
yaneony

yaneony commented on Jun 11, 2025

@yaneony
Author

I've tested multiple workflows, multiple users. Always same result. On main page/dashboard user is always displayed as Ghost, but when you check tag details, original/selected user is there.

lunny

lunny commented on Jun 11, 2025

@lunny
Member

The user should be gitea-actions because the tag pusher is that user.
The name in the tag detail is not right. It's the author of the commit of that tag. The pusher should be gitea-actions.

added a commit that references this issue on Jun 18, 2025
4c2441b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @lunny@techknowlogick@yaneony

      Issue actions

        New tags always pushed as Ghost user · Issue #34688 · go-gitea/gitea