Skip to content

push credentials on github actions #1050

Open
@jdrouet

Description

👋 Hey!
First, thank you for this wonderful project.
I'm writing here because I'm trying to write a git extension called git-metrics which would allow to store metrics regarding the project, inside git notes, with a simple CLI, so that we don't need to rely on external services.
I have some commands working (add, remove, show) but when it comes to push and pull, it becomes a bit more tricky considering it involves some authentication.
In this PR, I'm trying to use git-metrics push to push my notes, directly from a github action. Using git, we just need to do git push origin refs/notes/metrics and the authentication works out of the box.
With git2, the authentication doesn't seem to work.
Does anyone know, what is the proper way to authenticate using git2 on github actions?
Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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