fix: type guard for catched error
This commit is contained in:
@@ -114,8 +114,10 @@ export async function run(): Promise<void> {
|
|||||||
core.setFailed('This repo has some vulnerabilities')
|
core.setFailed('This repo has some vulnerabilities')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (e: unknown) {
|
||||||
core.setFailed(error.message)
|
if (e instanceof Error) {
|
||||||
|
core.setFailed(e.message)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user