File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ if config_env() == :prod do
15
15
session_signing_salt: System . fetch_env! ( "HEXDOCS_SESSION_SIGNING_SALT" ) ,
16
16
session_encryption_salt: System . fetch_env! ( "HEXDOCS_SESSION_ENCRYPTION_SALT" ) ,
17
17
queue_concurrency: String . to_integer ( System . fetch_env! ( "HEXDOCS_QUEUE_CONCURRENCY" ) ) ,
18
+ github_user: System . fetch_env! ( "HEXDOCS_GITHUB_USER" ) ,
19
+ github_token: System . fetch_env! ( "HEXDOCS_GITHUB_TOKEN" ) ,
18
20
host: System . fetch_env! ( "HEXDOCS_HOST" )
19
21
20
22
config :hexdocs , :repo_bucket , name: System . fetch_env! ( "HEXDOCS_REPO_BUCKET" )
Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ defmodule Hexdocs.SourceRepo.GitHub do
4
4
5
5
@ impl true
6
6
def versions ( repo ) do
7
+ user = Application . get_env ( :hexdocs , :github_user )
8
+ token = Application . get_env ( :hexdocs , :github_token )
7
9
url = @ github_url <> "/repos/#{ repo } /tags"
8
10
9
11
headers = [
10
12
accept: "application/json"
11
13
]
12
14
13
15
options = [
14
- :with_body
16
+ :with_body ,
17
+ basic_auth: { user , token }
15
18
]
16
19
17
20
Hexdocs.HTTP . retry ( "github" , url , fn ->
You can’t perform that action at this time.
0 commit comments