Skip to content

Commit 8c2d88e

Browse files
authored
chore: add erlang-ci workflow (#13)
* chore: add erlang-ci workflow with audit and SBOM scanning Add Taure/erlang-ci reusable workflow with fmt, xref, dialyzer, eunit, ex_doc, audit, SBOM generation/scanning, and dependency submission. Add .tool-versions for reproducible builds. Add rebar3_audit and rebar3_sbom project plugins. * fix: suppress xref warning for load_local_schemas/0 public API
1 parent bc52bdc commit 8c2d88e

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
push:
7+
branches: [master]
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
ci:
15+
uses: Taure/erlang-ci/.github/workflows/ci.yml@v1
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
with:
20+
version-file: '.tool-versions'
21+
enable-ex-doc: true
22+
enable-audit: true
23+
enable-sbom: true
24+
enable-sbom-scan: true
25+
enable-dependency-submission: true
26+
enable-summary: true

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
erlang 28.0.1
2+
rebar 3.24.0

rebar.config

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
{jesse, "1.8.1"}
55
]}.
66

7+
{xref_ignores, [
8+
{nova_json_schemas, load_local_schemas, 0}
9+
]}.
10+
711
{dialyzer, [
812
{plt_extra_apps, [
913
nova,
@@ -14,7 +18,10 @@
1418

1519
{project_plugins, [
1620
{erlfmt, "~>1.3"},
17-
rebar3_ex_doc
21+
rebar3_ex_doc,
22+
rebar3_audit,
23+
{rebar3_sbom,
24+
{git, "https://github.com/Taure/rebar3_sbom.git", {branch, "feat/include-otp-components"}}}
1825
]}.
1926

2027
{hex, [{doc, #{provider => ex_doc}}]}.

0 commit comments

Comments
 (0)