Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/provenance-action. Fail CI when dependencies in your lockfile lose npm provenance or trus
Something went wrong. Try again.
provenance-action action.yml
123456789101112131415161718192021222324252627282930313233343536373839name: Provenance downgrade checkdescription: Fail CI when dependencies in your lockfile lose npm provenance, trusted publisher or staged publishing status.author: Daniel Roe (@danielroe)
# Add your action's branding here. This will appear on the GitHub Marketplace.branding: icon: shield color: purple
inputs: lockfile: description: 'Path to lockfile (pnpm-lock.yaml, package-lock.json, yarn.lock)' required: false workspace-path: description: 'Path to workspace root (default: GITHUB_WORKSPACE)' required: false default: . base-ref: description: 'Git ref to compare against (e.g., origin/main)' required: false fail-on-downgrade: description: 'Fail behavior: true|false|any|only-provenance-loss (default: true)' required: false default: 'true' fail-on-provenance-change: description: 'Fail job when provenance repository/branch changes (default: false)' required: false default: 'false'
outputs: downgraded: description: 'JSON array of { name, from, to, downgradeType } for detected downgrades' changed: description: 'JSON array of provenance change events: { name, from, to, type, previousRepository?, newRepository?, previousBranch?, newBranch? }'
runs: using: node24 main: lib/index.ts