@@ -48,7 +48,7 @@ export class Install {
4848 this . buildx = opts ?. buildx || new Buildx ( ) ;
4949 }
5050
51- public async download ( v : string , ghaNoCache ?: boolean ) : Promise < string > {
51+ public async download ( v : string , ghaNoCache ?: boolean , skipState ?: boolean ) : Promise < string > {
5252 const version : DownloadVersion = await Install . getDownloadVersion ( v ) ;
5353 core . debug ( `Install.download version: ${ version . version } ` ) ;
5454
@@ -83,12 +83,12 @@ export class Install {
8383 const htcDownloadPath = await tc . downloadTool ( downloadURL , undefined , this . githubToken ) ;
8484 core . debug ( `Install.download htcDownloadPath: ${ htcDownloadPath } ` ) ;
8585
86- const cacheSavePath = await installCache . save ( htcDownloadPath ) ;
86+ const cacheSavePath = await installCache . save ( htcDownloadPath , skipState ) ;
8787 core . info ( `Cached to ${ cacheSavePath } ` ) ;
8888 return cacheSavePath ;
8989 }
9090
91- public async build ( gitContext : string , ghaNoCache ?: boolean ) : Promise < string > {
91+ public async build ( gitContext : string , ghaNoCache ?: boolean , skipState ?: boolean ) : Promise < string > {
9292 const vspec = await this . vspec ( gitContext ) ;
9393 core . debug ( `Install.build vspec: ${ vspec } ` ) ;
9494
@@ -119,7 +119,7 @@ export class Install {
119119 return `${ outputDir } /cosign` ;
120120 } ) ;
121121
122- const cacheSavePath = await installCache . save ( buildBinPath ) ;
122+ const cacheSavePath = await installCache . save ( buildBinPath , skipState ) ;
123123 core . info ( `Cached to ${ cacheSavePath } ` ) ;
124124 return cacheSavePath ;
125125 }
@@ -139,7 +139,7 @@ export class Install {
139139 fs . chmodSync ( cosignPath , '0755' ) ;
140140
141141 core . addPath ( binDir ) ;
142- core . info ( 'Added Unodck to PATH' ) ;
142+ core . info ( 'Added Cosign to PATH' ) ;
143143
144144 core . info ( `Binary path: ${ cosignPath } ` ) ;
145145 return cosignPath ;
0 commit comments