Skip to content

Commit d9e791d

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

File tree

5 files changed

+112
-92
lines changed

5 files changed

+112
-92
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check Provenance
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- "2.0.0"
7+
pull_request:
8+
branches:
9+
- main
10+
- "2.0.0"
11+
permissions:
12+
contents: read
13+
jobs:
14+
check-provenance:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Check provenance downgrades
21+
uses: danielroe/provenance-action@main
22+
id: check
23+
with:
24+
fail-on-provenance-change: true # optional, default: false
25+
lockfile: pnpm-lock.yaml # optional
26+
# base-ref: origin/main # optional, default: origin/main
27+
fail-on-downgrade: true # optional, default: true
28+
- name: Print result
29+
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)