@@ -202,10 +202,12 @@ async function run(context: typeof github.context): Promise<void> {
202202 console . log ( item . toString ( ) ) ;
203203 } ) ;
204204
205+ console . log ( "\nREADING WORKFLOW FILES" ) ;
205206 workflowFilePaths . forEach ( ( wf ) => {
207+ console . log ( line ) ;
206208 let workflow : Workflow = { filePath : wf , actions : Array < Action > ( ) } ;
207209 workflowFiles . push ( workflow ) ;
208-
210+ console . log ( "\nReading:" + workflow . filePath ) ;
209211 try {
210212 let yaml : any = yamlParse . load (
211213 fs . readFileSync ( workflow . filePath , "utf-8" ) ,
@@ -265,13 +267,13 @@ async function run(context: typeof github.context): Promise<void> {
265267 if ( violation . actions . length > 0 ) {
266268 actionViolations . push ( violation ) ;
267269 } else {
268- console . log ( "\nNo violations detected" ) ;
270+ console . log ( "\n ✅ No violations detected" ) ;
269271 }
270272 } ) ;
271273
272274 if ( actionViolations . length > 0 ) {
273275 core . setOutput ( "violations" , actionViolations ) ;
274- console . log ( "\n!!! ACTION POLICY VIOLATIONS DETECTED !!! " ) ;
276+ console . log ( "\n ❌ ACTION POLICY VIOLATIONS DETECTED ❌ " ) ;
275277 console . log ( line ) ;
276278
277279 actionViolations . forEach ( ( workflow ) => {
@@ -285,11 +287,11 @@ async function run(context: typeof github.context): Promise<void> {
285287 } ) ;
286288
287289 if ( failIfViolations ) {
288- core . setFailed ( "!!! ACTION POLICY VIOLATIONS DETECTED !!! " ) ;
290+ core . setFailed ( " ❌ ACTION POLICY VIOLATIONS DETECTED ❌ " ) ;
289291 }
290292 } else {
291293 console . log (
292- "\nAll workflow files contain actions that conform to the policy provided." ,
294+ "\n ✅ All workflow files contain actions that conform to the policy provided." ,
293295 ) ;
294296 }
295297 } catch ( error : unknown ) {
0 commit comments