-
-
Notifications
You must be signed in to change notification settings - Fork 40
30 lines (30 loc) · 877 Bytes
/
check-provenance.yml
File metadata and controls
30 lines (30 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Check Provenance
on:
push:
branches:
- main
- "2.0.0"
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- main
- "2.0.0"
permissions:
contents: read
jobs:
check-provenance:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Check provenance downgrades
uses: danielroe/provenance-action@main
id: check
with:
fail-on-provenance-change: true # optional, default: false
lockfile: pnpm-lock.yaml # optional
# base-ref: origin/main # optional, default: origin/main
fail-on-downgrade: true # optional, default: true
- name: Print result
run: "echo 'Downgraded: ${{ steps.check.outputs.downgraded }}'"