Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71faa19bb4 | ||
|
|
b5ad978d44 | ||
|
|
0508c9fbce | ||
|
|
af82855bed |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -15,3 +15,4 @@ GEMINI.md
|
|||||||
temp/*
|
temp/*
|
||||||
cli-proxy-api
|
cli-proxy-api
|
||||||
static/*
|
static/*
|
||||||
|
.env
|
||||||
|
|||||||
@@ -159,6 +159,10 @@ func fetchLatestAsset(ctx context.Context, client *http.Client) (*releaseAsset,
|
|||||||
}
|
}
|
||||||
req.Header.Set("Accept", "application/vnd.github+json")
|
req.Header.Set("Accept", "application/vnd.github+json")
|
||||||
req.Header.Set("User-Agent", httpUserAgent)
|
req.Header.Set("User-Agent", httpUserAgent)
|
||||||
|
gitURL := strings.ToLower(strings.TrimSpace(os.Getenv("GITSTORE_GIT_URL")))
|
||||||
|
if tok := strings.TrimSpace(os.Getenv("GITSTORE_GIT_TOKEN")); tok != "" && strings.Contains(gitURL, "github.com") {
|
||||||
|
req.Header.Set("Authorization", "Bearer "+tok)
|
||||||
|
}
|
||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user