@@ -49,7 +49,7 @@ export async function getVerifierVersion(actionRef: string): Promise<string> {
49
49
{
50
50
owner : "slsa-framework" ,
51
51
repository : "slsa-verifier" ,
52
- }
52
+ } ,
53
53
) ;
54
54
for ( const tag of tags ) {
55
55
const commitSha = tag . commit . sha ;
@@ -59,14 +59,14 @@ export async function getVerifierVersion(actionRef: string): Promise<string> {
59
59
}
60
60
}
61
61
throw new Error (
62
- `Invalid version provided: ${ actionRef } . For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.`
62
+ `Invalid version provided: ${ actionRef } . For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.` ,
63
63
) ;
64
64
}
65
65
66
66
// If true, then the file in `path` has the same SHA256 hash as `expectedSha256Hash``.
67
67
export function fileHasExpectedSha256Hash (
68
68
filePath : string ,
69
- expectedSha256Hash : string
69
+ expectedSha256Hash : string ,
70
70
) : boolean {
71
71
if ( ! fs . existsSync ( filePath ) ) {
72
72
throw new Error ( `File not found: ${ filePath } ` ) ;
@@ -100,7 +100,7 @@ async function run(): Promise<void> {
100
100
} catch ( error : unknown ) {
101
101
const errMsg = error instanceof Error ? error . message : String ( error ) ;
102
102
core . setFailed (
103
- `Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${ errMsg } `
103
+ `Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${ errMsg } ` ,
104
104
) ;
105
105
cleanup ( ) ;
106
106
return ;
@@ -115,7 +115,7 @@ async function run(): Promise<void> {
115
115
// Download bootstrap version and validate SHA256 checksum
116
116
bootstrapVerifierPath = await tc . downloadTool (
117
117
`https://github.com/slsa-framework/slsa-verifier/releases/download/${ BOOTSTRAP_VERSION } /slsa-verifier-linux-amd64` ,
118
- `${ bootstrapDir } /${ BINARY_NAME } `
118
+ `${ bootstrapDir } /${ BINARY_NAME } ` ,
119
119
) ;
120
120
} catch ( error : unknown ) {
121
121
const errMsg = error instanceof Error ? error . message : String ( error ) ;
@@ -128,7 +128,7 @@ async function run(): Promise<void> {
128
128
! fileHasExpectedSha256Hash ( bootstrapVerifierPath , BOOTSTRAP_VERIFIER_SHA256 )
129
129
) {
130
130
core . setFailed (
131
- `Unable to verify slsa-verifier checksum. Aborting installation.`
131
+ `Unable to verify slsa-verifier checksum. Aborting installation.` ,
132
132
) ;
133
133
cleanup ( ) ;
134
134
return ;
@@ -141,7 +141,7 @@ async function run(): Promise<void> {
141
141
// Download requested version binary and provenance
142
142
downloadedBinaryPath = await tc . downloadTool (
143
143
`https://github.com/slsa-framework/slsa-verifier/releases/download/${ version } /slsa-verifier-linux-amd64` ,
144
- `${ installDir } /${ BINARY_NAME } `
144
+ `${ installDir } /${ BINARY_NAME } ` ,
145
145
) ;
146
146
} catch ( error : unknown ) {
147
147
const errMsg = error instanceof Error ? error . message : String ( error ) ;
@@ -153,7 +153,7 @@ async function run(): Promise<void> {
153
153
try {
154
154
downloadedProvenancePath = await tc . downloadTool (
155
155
`https://github.com/slsa-framework/slsa-verifier/releases/download/${ version } /slsa-verifier-linux-amd64.intoto.jsonl` ,
156
- `${ installDir } /${ PROVENANCE_NAME } `
156
+ `${ installDir } /${ PROVENANCE_NAME } ` ,
157
157
) ;
158
158
} catch ( error : unknown ) {
159
159
const errMsg = error instanceof Error ? error . message : String ( error ) ;
@@ -175,11 +175,11 @@ async function run(): Promise<void> {
175
175
"github.com/slsa-framework/slsa-verifier" ,
176
176
"--source-tag" ,
177
177
version ,
178
- ]
178
+ ] ,
179
179
) ;
180
180
if ( exitCode !== 0 ) {
181
181
throw new Error (
182
- `Unable to verify binary provenance. Aborting installation. stdout: ${ stdout } ; stderr: ${ stderr } `
182
+ `Unable to verify binary provenance. Aborting installation. stdout: ${ stdout } ; stderr: ${ stderr } ` ,
183
183
) ;
184
184
}
185
185
} catch ( error : unknown ) {
0 commit comments