mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-12 18:07:12 -04:00
Add a `skip-verification` (boolean) option: - If `true`, the action will not validate the user or the commit verification status - Defaults to `false` Allows for scenarios where users want to add or amend commits on the Dependabot PR, and those commits will not come from the :dependabot: user. There's a fair bit of discussion on this use case and also why this isn't the default behavior, see: * https://github.com/dependabot/fetch-metadata/pull/336 * https://github.com/dependabot/fetch-metadata/issues/332
54 lines
2.6 KiB
YAML
54 lines
2.6 KiB
YAML
name: 'Fetch Metadata from Dependabot PRs'
|
|
description: 'Extract information from about the dependency being updated by a Dependabot-generated PR'
|
|
branding:
|
|
icon: 'search'
|
|
color: 'blue'
|
|
inputs:
|
|
alert-lookup:
|
|
type: boolean
|
|
description: 'If true, then populate the `alert-state`, `ghsa-id` and `cvss` outputs'
|
|
compat-lookup:
|
|
type: boolean
|
|
description: 'If true, then populate the `compatibility-score` output'
|
|
github-token:
|
|
description: 'The GITHUB_TOKEN secret'
|
|
default: ${{ github.token }}
|
|
skip-commit-verification:
|
|
type: boolean
|
|
description: 'If true, the action will not expect Dependabot commits to be verified. This should be set as `true` in GHES environments'
|
|
default: false
|
|
skip-verification:
|
|
type: boolean
|
|
description: 'If true, the action will not validate the user or the commit verification status'
|
|
default: false
|
|
outputs:
|
|
dependency-names:
|
|
description: 'A comma-separated list of all package names updated.'
|
|
dependency-type:
|
|
description: 'The type of dependency has determined this PR to be, e.g. "direct:production".'
|
|
update-type:
|
|
description: 'The highest semver change being made by this PR, e.g. "version-update:semver-major"'
|
|
updated-dependencies-json:
|
|
description: 'A JSON string containing the full information about each updated Dependency.'
|
|
directory:
|
|
description: 'The `directory` configuration that was used by dependabot for this updated Dependency.'
|
|
package-ecosystem:
|
|
description: 'The `package-ecosystem` configuration that was used by dependabot for this updated Dependency.'
|
|
target-branch:
|
|
description: 'The `target-branch` configuration that was used by dependabot for this updated Dependency.'
|
|
previous-version:
|
|
description: 'The version that this PR updates the dependency from.'
|
|
new-version:
|
|
description: 'The version that this PR updates the dependency to.'
|
|
alert-state:
|
|
description: 'If this PR is associated with a security alert and `alert-lookup` is `true`, this contains the current state of that alert (OPEN, FIXED or DISMISSED).'
|
|
ghsa-id:
|
|
description: 'If this PR is associated with a security alert and `alert-lookup` is `true`, this contains the GHSA-ID of that alert.'
|
|
cvss:
|
|
description: 'If this PR is associated with a security alert and `alert-lookup` is `true`, this contains the CVSS value of that alert (otherwise it contains 0).'
|
|
compatibility-score:
|
|
description: 'If this PR has a known compatibility score and `compat-lookup` is `true`, this contains the compatibility score (otherwise it contains 0).'
|
|
runs:
|
|
using: 'node16'
|
|
main: 'dist/index.js'
|