Skip to content

Commit 3269e3f

Browse files
committed
ci: add check-provenance workflow
1 parent 86ab332 commit 3269e3f

File tree

5 files changed

+113
-92
lines changed

5 files changed

+113
-92
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
branches:
55
- main
66
- "2.0.0"
7-
- "2.0.0-beta"
8-
- "2.0.0-next"
97
tags-ignore:
108
- "**"
119
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)