11"use strict" ;
2+ var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
3+ if ( k2 === undefined ) k2 = k ;
4+ Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
5+ } ) : ( function ( o , m , k , k2 ) {
6+ if ( k2 === undefined ) k2 = k ;
7+ o [ k2 ] = m [ k ] ;
8+ } ) ) ;
9+ var __setModuleDefault = ( this && this . __setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
10+ Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
11+ } ) : function ( o , v ) {
12+ o [ "default" ] = v ;
13+ } ) ;
14+ var __importStar = ( this && this . __importStar ) || function ( mod ) {
15+ if ( mod && mod . __esModule ) return mod ;
16+ var result = { } ;
17+ if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
18+ __setModuleDefault ( result , mod ) ;
19+ return result ;
20+ } ;
221var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
322 function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
423 return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -8,20 +27,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
827 step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
928 } ) ;
1029} ;
11- var __importStar = ( this && this . __importStar ) || function ( mod ) {
12- if ( mod && mod . __esModule ) return mod ;
13- var result = { } ;
14- if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
15- result [ "default" ] = mod ;
16- return result ;
17- } ;
1830Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1931const core = __importStar ( require ( "@actions/core" ) ) ;
20- const msca_actions_toolkit_1 = require ( "msca -actions-toolkit" ) ;
32+ const microsoft_security_devops_actions_toolkit_1 = require ( "microsoft-security-devops -actions-toolkit" ) ;
2133const path = __importStar ( require ( "path" ) ) ;
2234function run ( ) {
2335 return __awaiter ( this , void 0 , void 0 , function * ( ) {
24- let client = new msca_actions_toolkit_1 . MscaClient ( ) ;
36+ let client = new microsoft_security_devops_actions_toolkit_1 . MsdoClient ( ) ;
2537 let args = [ 'run' ] ;
2638 let config = core . getInput ( 'config' ) ;
2739 if ( ! client . isNullOrWhiteSpace ( config ) ) {
@@ -41,7 +53,8 @@ function run() {
4153 args . push ( '-p' ) ;
4254 args . push ( policy ) ;
4355 }
44- yield client . run ( args ) ;
56+ args . push ( '--github' ) ;
57+ yield client . run ( args , 'github/ossar-action' ) ;
4558 } ) ;
4659}
4760run ( ) . catch ( ( error ) => core . setFailed ( error ) ) ;
0 commit comments