Skip to content

Commit 65f14ce

Browse files
committed
ci: add check-provenance workflow
1 parent a0a0883 commit 65f14ce

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Provenance
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- "2.0.0"
7+
pull_request:
8+
types: [opened, edited, reopened, synchronize]
9+
branches:
10+
- main
11+
- "2.0.0"
12+
permissions:
13+
contents: read
14+
jobs:
15+
check-provenance:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Check provenance downgrades
22+
uses: danielroe/provenance-action@main
23+
id: check
24+
with:
25+
fail-on-provenance-change: true # optional, default: false
26+
lockfile: pnpm-lock.yaml # optional
27+
# base-ref: origin/main # optional, default: origin/main
28+
fail-on-downgrade: true # optional, default: true
29+
- name: Print result
30+
run: "echo 'Downgraded: ${{ steps.check.outputs.downgraded }}'"

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check
22
on:
33
push:
44
branches:
5-
- main
5+
- "**"
66
pull_request:
77
types: [opened, edited, reopened, synchronize]
88
branches:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
- "2.0.0-next"
6+
- "2.0.0"
77
tags-ignore:
88
- "**"
99
paths-ignore:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
- "2.0.0-next"
6+
- "2.0.0"
77
pull_request:
88
types: [opened, edited, reopened, synchronize]
99
branches:

0 commit comments

Comments
 (0)