Skip to content

Commit d451fb2

Browse files
authored
Harden CI supply chain settings (#49)
* chore: replace deprecated xref exclude with elixirc_options * ci: update runner to ubuntu-24.04 and refresh test matrix - ubuntu-20.04 runner image was removed from GitHub Actions in April 2025 - Add Elixir 1.19 (latest stable) and move lint target to 1.19 + OTP 28 - Drop Elixir 1.12, 1.13, 1.14 (no longer in security support upstream) - Drop OTP < 24.3 since they are not provided on ubuntu-22.04/24.04 * chore: bump minimum Elixir version to 1.15 Align the supported Elixir version with what the CI matrix actually tests. Elixir < 1.15 is no longer in security support upstream and is not exercised by CI. * chore: harden supply chain in CI * ci: keep dev dependencies available for lock checks
1 parent 01d6b52 commit d451fb2

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22
on: [push, pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
build:
69
name: Build and test
@@ -34,12 +37,12 @@ jobs:
3437
- elixir: 1.15.x
3538
otp: 24.x
3639
steps:
37-
- uses: actions/checkout@v4
38-
- uses: erlef/setup-beam@v1
40+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
41+
- uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
3942
with:
4043
elixir-version: ${{ matrix.elixir }}
4144
otp-version: ${{ matrix.otp }}
42-
- run: mix deps.get
45+
- run: mix deps.get --check-locked
4346
- run: mix deps.compile
4447
- run: mix compile --warnings-as-errors
4548
if: ${{ matrix.lint }}

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ defmodule Params.Mixfile do
5454
defp deps do
5555
[
5656
{:ecto, "~> 2.0 or ~> 3.0"},
57-
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
57+
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
5858
{:dialyxir, "~> 0.5", only: :dev, runtime: false}
5959
]
6060
end

0 commit comments

Comments
 (0)