Skip to content

Commit 9c903c4

Browse files
committed
ci: add check-provenance workflow
1 parent a0a0883 commit 9c903c4

File tree

1 file changed

+24
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)