Skip to content

Semaphore getting git based inventory without authentication #3539

@fatihusta

Description

@fatihusta

My templates are working as expected. Because my git repository also include inventory.

I saw this bug when I press the "edit button". Semaphore getting branch list from git without authentication. I'm using username password.(oauth2:key)

I tried two git client options. But nothing changed.

Step1

Getting git url from r.Repository.GetGitURL function.

Step2

Calling the c.output function with the git url in GetRemoteBranches .

Step3
key installation preparing in output function

So r.Repository.GetGitURL function getting URL before calling key installation service. That means url doesn't contains login:password@ part.

Also missing login_password case in agent key install function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions