Skip to content

Job repository value is set to the repository of the shared workflow instead of the caller repository #4119

Open
@GitBluub

Description

@GitBluub

Checks

Controller Version

0.11.0

Deployment Method

ArgoCD

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

Run a job using a reusable workflow in another repository.
Note: It doesn't seem to be consistent as you will see in the description

Describe the bug

JobRepositoryName on the CRD and metrics sometimes uses the repository of the reusable workflows instead of the repo using it. It seems like it is either always the reusable workflows or always the correct value without any changes to our deployment. Seems to me like an issue on the Github's backend side because the code parsing the job repo name from the message didn't change for a lot of time. You can see the following screen for our workflows jobrepository name. (Al these jobs are basically the same and all our workflows using ARC are using the same reusable workflows)

Image

I saw someone else mention this in another another issue but it should be another issue.

Describe the expected behavior

JobRepository should be the value of the repository using the reusable workflows not the repository of the reusable workflow

Additional Context

I looked at the controller logs and runner pods logs but nothing looked valuable for this issue. If needed I will provide some

Controller Logs

N/A

Runner Pod Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions