Skip to content

Commit cdb6910

Browse files
authored
Add missing Config.registry_ssl_opts/0 (#143)
1 parent b002578 commit cdb6910

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
with:
2222
otp-version: ${{ env.OTP }}
2323
elixir-version: ${{ env.ELIXIR }}
24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v3
2525
id: mix-cache
2626
with:
2727
path: deps
2828
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
29-
- uses: actions/cache@v2
29+
- uses: actions/cache@v3
3030
id: build-cache
3131
with:
3232
path: _build
3333
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
34-
- uses: actions/cache@v1
34+
- uses: actions/cache@v3
3535
id: plt-cache
3636
with:
3737
path: priv/plts
@@ -58,12 +58,12 @@ jobs:
5858
with:
5959
otp-version: ${{ env.OTP }}
6060
elixir-version: ${{ env.ELIXIR }}
61-
- uses: actions/cache@v2
61+
- uses: actions/cache@v3
6262
id: mix-cache
6363
with:
6464
path: deps
6565
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
66-
- uses: actions/cache@v2
66+
- uses: actions/cache@v3
6767
id: build-cache
6868
with:
6969
path: _build
@@ -86,12 +86,12 @@ jobs:
8686
with:
8787
otp-version: ${{ env.OTP }}
8888
elixir-version: ${{ env.ELIXIR }}
89-
- uses: actions/cache@v2
89+
- uses: actions/cache@v3
9090
id: mix-cache
9191
with:
9292
path: deps
9393
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
94-
- uses: actions/cache@v2
94+
- uses: actions/cache@v3
9595
id: build-cache
9696
with:
9797
path: _build
@@ -115,17 +115,17 @@ jobs:
115115
with:
116116
otp-version: ${{ env.OTP }}
117117
elixir-version: ${{ env.ELIXIR }}
118-
- uses: actions/cache@v2
118+
- uses: actions/cache@v3
119119
id: mix-cache
120120
with:
121121
path: test/integration/deps
122122
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-ext-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
123-
- uses: actions/cache@v2
123+
- uses: actions/cache@v3
124124
id: build-cache
125125
with:
126126
path: test/integration/_build
127127
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-build-ext-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
128-
- uses: actions/cache@v1
128+
- uses: actions/cache@v3
129129
id: plt-cache
130130
with:
131131
path: test/integration/priv/plts
@@ -168,12 +168,12 @@ jobs:
168168
with:
169169
otp-version: ${{ matrix.otp }}
170170
elixir-version: ${{ matrix.elixir }}
171-
- uses: actions/cache@v2
171+
- uses: actions/cache@v3
172172
id: mix-cache
173173
with:
174174
path: deps
175175
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
176-
- uses: actions/cache@v2
176+
- uses: actions/cache@v3
177177
id: build-cache
178178
with:
179179
path: _build

lib/avrora/config.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ defmodule Avrora.Config do
6262
@doc false
6363
def registry_user_agent, do: get_env(:registry_user_agent, "Avrora/#{version()} Elixir")
6464

65+
@doc false
66+
def registry_ssl_opts, do: get_env(:registry_ssl_opts, nil)
67+
6568
# NOTE: Starting OTP-25 it is possible to call `public_key:cacerts_get`
6669
# See https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/ssl
6770
@doc false

0 commit comments

Comments
 (0)