Remotecfg in alloy not working with github endpoint

am trying to include an alloy config file using remotecfg i am getting error Error: could not perform the initial load successfully

When tried with curl i am able to get the result
curl -u lijin-jayan:$(cat /etc/github_pass) https://raw.githubusercontent.com/company/tse-alloy-backup/blob/main/server01/app.alloy

Able to get the output successfully. However when i am trying to place in remotecfg its failing.

remotecfg {
    url = "https://github.com/company/tse-alloy-backup/blob/main/server01/app.alloy"
    basic_auth {
        username      = "lijin-jayan"
        password_file = "/etc/github_pass"
    }
    poll_frequency = "5m"
}

Note: The alloy config file is valid since i have tried to run it by placing in server its working fine .

I don’t use GitHub for remotecfg myself, so can’t give you an exact answer. But you are using different URLs from test and remotecfg, is that a reason for this?

How did you do it? I’ve tried everything. I need to create a service in either Golang or Python that accepts the alloy call, searches my SQLite3 database for the file, and returns the configuration. I can’t do it even without using the DB.

We use remote.s3 plus import.string for our remote configurations. They are pre-populated and placed on an S3 bucket.