Skip to content

Commit 901d6c5

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

File tree

2 files changed

+105
-88
lines changed

2 files changed

+105
-88
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 }}'"

pnpm-lock.yaml

Lines changed: 81 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)