@@ -4388,6 +4388,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
4388
4388
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
4389
4389
exports . TrivyCmdOptionValidator = void 0 ;
4390
4390
const fs = __importStar ( __webpack_require__ ( 747 ) ) ;
4391
+ const core = __importStar ( __webpack_require__ ( 470 ) ) ;
4391
4392
class TrivyCmdOptionValidator {
4392
4393
constructor ( option ) {
4393
4394
this . option = option ;
@@ -4422,7 +4423,11 @@ class TrivyCmdOptionValidator {
4422
4423
return true ;
4423
4424
}
4424
4425
validateTemplate ( ) {
4425
- const template = this . option . template ;
4426
+ if ( ! this . option . template . startsWith ( '@' ) ) {
4427
+ core . warning ( 'template parameter prefix must be "@"' ) ;
4428
+ this . option . template = `@${ this . option . template } ` ;
4429
+ }
4430
+ const template = this . option . template . replace ( '@' , '' ) ;
4426
4431
const exists = fs . existsSync ( template ) ;
4427
4432
if ( ! exists ) {
4428
4433
throw new Error ( `Could not find ${ template } ` ) ;
@@ -10289,7 +10294,7 @@ class Inputs {
10289
10294
severity : core . getInput ( 'severity' ) . replace ( / \s + / g, '' ) ,
10290
10295
vulnType : core . getInput ( 'vuln_type' ) . replace ( / \s + / g, '' ) ,
10291
10296
ignoreUnfixed : core . getInput ( 'ignore_unfixed' ) . toLowerCase ( ) === 'true' ,
10292
- template : core . getInput ( 'template' ) || __webpack_require__ . ab + " default.tpl"
10297
+ template : core . getInput ( 'template' ) || `@ ${ __dirname } / default.tpl`
10293
10298
}
10294
10299
} ;
10295
10300
this . issue = {
0 commit comments