mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-12 18:07:12 -04:00
Add skip-commit-verification input
This commit is contained in:
@@ -13,6 +13,10 @@ inputs:
|
||||
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
|
||||
outputs:
|
||||
dependency-names:
|
||||
description: 'A comma-separated list of all package names updated.'
|
||||
|
||||
@@ -10,6 +10,7 @@ beforeEach(() => {
|
||||
jest.spyOn(core, 'info').mockImplementation(jest.fn())
|
||||
jest.spyOn(core, 'setFailed').mockImplementation(jest.fn())
|
||||
jest.spyOn(core, 'startGroup').mockImplementation(jest.fn())
|
||||
jest.spyOn(core, 'getBooleanInput').mockReturnValue(false)
|
||||
})
|
||||
|
||||
test('it early exits with an error if github-token is not set', async () => {
|
||||
|
||||
@@ -22,7 +22,7 @@ export async function run (): Promise<void> {
|
||||
const githubClient = github.getOctokit(token)
|
||||
|
||||
// Validate the job
|
||||
const commitMessage = await verifiedCommits.getMessage(githubClient, github.context)
|
||||
const commitMessage = await verifiedCommits.getMessage(githubClient, github.context, core.getBooleanInput('skip-commit-verification'))
|
||||
const branchNames = util.getBranchNames(github.context)
|
||||
let alertLookup: updateMetadata.alertLookup | undefined
|
||||
if (core.getInput('alert-lookup')) {
|
||||
|
||||
Reference in New Issue
Block a user