File tree 3 files changed +6
-1
lines changed 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
github-token :
14
14
description : ' The GITHUB_TOKEN secret'
15
15
default : ${{ github.token }}
16
+ skip-commit-verification :
17
+ type : boolean
18
+ description : ' If true, the action will not expect Dependabot commits to be verified. This should be set as ' true' in GHES environments.'
19
+ default : false
16
20
outputs :
17
21
dependency-names :
18
22
description : ' A comma-separated list of all package names updated.'
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ beforeEach(() => {
10
10
jest . spyOn ( core , 'info' ) . mockImplementation ( jest . fn ( ) )
11
11
jest . spyOn ( core , 'setFailed' ) . mockImplementation ( jest . fn ( ) )
12
12
jest . spyOn ( core , 'startGroup' ) . mockImplementation ( jest . fn ( ) )
13
+ jest . spyOn ( core , 'getBooleanInput' ) . mockReturnValue ( false )
13
14
} )
14
15
15
16
test ( 'it early exits with an error if github-token is not set' , async ( ) => {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export async function run (): Promise<void> {
22
22
const githubClient = github . getOctokit ( token )
23
23
24
24
// Validate the job
25
- const commitMessage = await verifiedCommits . getMessage ( githubClient , github . context )
25
+ const commitMessage = await verifiedCommits . getMessage ( githubClient , github . context , core . getBooleanInput ( 'skip-commit-verification' ) )
26
26
const branchNames = util . getBranchNames ( github . context )
27
27
let alertLookup : updateMetadata . alertLookup | undefined
28
28
if ( core . getInput ( 'alert-lookup' ) ) {
You can’t perform that action at this time.
0 commit comments