Skip to content

Renovate bot ignoring gitAuthor config property #902

Closed as not planned
Closed as not planned

Description

@The-Lomax

Hello. I would like to ask for help understanding a problem i have been facing all day.
I have managed to set up the bot via the Renovate App and it was working no problem. I have managed to set up a Github action workflow to run the bot on schedule that i'd like and within my github account, and everything was working fine. The bot is making the PRs and Dashboard is working just fine.
The issue i am facing, is that all the commits and PRs, everything the bot does, is authored as me. Normally when i set it up as the Github App, i'd see the renovate BOT making the PRs, but if i set it up as a workflow, everything is shown as i am the author. This is not the behaviour i would like to see and here i am asking for support on this matter.

Here's the github action workflow i have used:

name: Renovate
on:
  #  schedule:
  #    - cron: '0/10 * * * *'
  workflow_dispatch:
jobs:
  renovate:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - name: Checkout
        uses: actions/checkout@v4.2.2
      - name: Self-hosted Renovate
        uses: renovatebot/github-action@v41.0.7
        with:
          configurationFile: .github/renovate/renovate-config.json
          token: ${{ secrets.RENOVATE_TOKEN }}
        env:
          LOG_LEVEL: debug

Here is the renovate-config.json file:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],
  "branchPrefix": "renovate/",
  "dependencyDashboardTitle": "Renovate Dependency Dashboard",
  "gitAuthor": "RenovateBOT <bot@renovateapp.com>",
  "onboarding": true,
  "onboardingBranch": "renovate/configure",
  "platform": "github",
  "prConcurrentLimit": 20,
  "prHourlyLimit": 10,
  "repositories": [
    "HERE I PUT MY ACC/REPO"
  ],
  "labels": ["BOT"]
}

Just for the record, i have tried different ways to make it work, i tried:

  • adding the renovate user env variable
  • adding preset file
  • adding gitAuthor in the root folder json config file

I have created a separate PAT token with necessary permissions for the bot to use that's saved in the repository's secret variables.

At this point i am quite clueless as to what could be the problem. Is this simply a GitHub limitation and because mine is a personal (even though i pay for github pro) account? Or is there something i need to do in order to fix it?

Thank you very much in advance for your support. Please let me know if there's anything else you'd like me to provide.

Activity

  1. rarkins commented on Jan 14, 2025

    @rarkins
    Contributor

    Please provide some screenshots showing what you mean

  2. The-Lomax commented on Jan 14, 2025

    @The-Lomax
    Author
    image Like this
  3. The-Lomax commented on Jan 14, 2025

    @The-Lomax
    Author

    What i mean is that the bot is creating all the PRs and Dependency Dashboard, but it's all in my name. I would like it to say correctly, that it was authored by "Renovate Bot"

  4. rarkins commented on Jan 14, 2025

    @rarkins
    Contributor

    This indicates that you're using a PAT for Renovate (not an App as you said) and the result is to be expected. It is not possible to change "The-Lomax" part in that screenshot because otherwise it would be complete madness on GitHub.com as anyone could impersonate anyone else.

    This is not a bug, and should not be an issue so closing. Please create a discussion instead.

  5. locked and limited conversation to collaborators on Jan 14, 2025
  6. converted this issue into a discussion #903 on Jan 14, 2025
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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Datasource

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions