Skip to content

Commit c80bc48

Browse files
committed
feat: Add workflow to check for semver breaking changes.
1 parent 8922439 commit c80bc48

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,39 @@ jobs:
129129
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130130
- uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
131131

132-
- name: Run cargo-machete
132+
- name: Check dependencies
133133
uses: bnjbvr/cargo-machete@main
134+
135+
semver:
136+
name: Semver Breaking Changes
137+
runs-on: ubuntu-latest
138+
env:
139+
SCCACHE_GHA_ENABLED: "true"
140+
RUSTC_WRAPPER: "sccache"
141+
steps:
142+
- name: Harden Runner
143+
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
144+
with:
145+
disable-sudo: true
146+
egress-policy: block
147+
allowed-endpoints: >
148+
api.deps.dev:443
149+
api.github.com:443
150+
api.osv.dev:443
151+
api.scorecard.dev:443
152+
fulcio.sigstore.dev:443
153+
github.com:443
154+
oss-fuzz-build-logs.storage.googleapis.com:443
155+
rekor.sigstore.dev:443
156+
tuf-repo-cdn.sigstore.dev:443
157+
www.bestpractices.dev:443
158+
objects.githubusercontent.com:443
159+
static.rust-lang.org:443
160+
index.crates.io:443
161+
static.crates.io:443
162+
163+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
164+
- uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
165+
166+
- name: Check semver
167+
uses: obi1kenobi/cargo-semver-checks-action@v2

0 commit comments

Comments
 (0)