File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
1313 github-token :
1414 description : ' The GITHUB_TOKEN secret'
1515 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
1620outputs :
1721 dependency-names :
1822 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(() => {
1010 jest . spyOn ( core , 'info' ) . mockImplementation ( jest . fn ( ) )
1111 jest . spyOn ( core , 'setFailed' ) . mockImplementation ( jest . fn ( ) )
1212 jest . spyOn ( core , 'startGroup' ) . mockImplementation ( jest . fn ( ) )
13+ jest . spyOn ( core , 'getBooleanInput' ) . mockReturnValue ( false )
1314} )
1415
1516test ( '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> {
2222 const githubClient = github . getOctokit ( token )
2323
2424 // 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' ) )
2626 const branchNames = util . getBranchNames ( github . context )
2727 let alertLookup : updateMetadata . alertLookup | undefined
2828 if ( core . getInput ( 'alert-lookup' ) ) {
You can’t perform that action at this time.
0 commit comments