Skip to content

Config from private github repository via raw #186

@Jasstkn

Description

@Jasstkn

Hi!

I'm trying to configure getting configuration as a code from private repository in my organization.

I was able to successfully add config with temporary token like:
https://raw.githubusercontent.com/ORG/REPO/BRANCH/config.yaml?token=XXXXX

But this token expires every 7 days and I want to replace it via access token from my service account user.
I've created token using doc here: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token, and paste url in format:

https://$TOKEN@raw.githubusercontent.com/ORG/REPO/BRANCH/config.yaml

And I've got 404. I'm gonna to dig into this problem a bit later, but maybe you already have a solution? If not I would like to contribute to allow pass some headers to this script: https://github.com/odavid/my-bloody-jenkins/blob/master/bin/fetchconfig.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions