@@ -586,6 +586,11 @@ export const gardenPlugin = () =>
586
586
)
587
587
}
588
588
589
+ if ( config . include === undefined && config . exclude === undefined ) {
590
+ // No reason to include files by default since the spec.image field is required and is enough to version the action
591
+ config . include = [ ]
592
+ }
593
+
589
594
return { config, supportedModes : { sync : ! ! spec . sync } satisfies ActionModes }
590
595
} ,
591
596
@@ -655,7 +660,14 @@ export const gardenPlugin = () =>
655
660
schema : containerRunActionSchema ( ) ,
656
661
runtimeOutputsSchema : containerRunOutputSchema ( ) ,
657
662
handlers : {
658
- // Implemented by other providers (e.g. kubernetes)
663
+ async configure ( { config } ) {
664
+ if ( config . include === undefined && config . exclude === undefined ) {
665
+ // No reason to include files by default since the spec.image field is required and is enough to version the action
666
+ config . include = [ ]
667
+ }
668
+ return { config, supportedModes : { sync : false } satisfies ActionModes }
669
+ } ,
670
+
659
671
async validate ( { action } ) {
660
672
validateRuntimeCommon ( action )
661
673
return { }
@@ -674,6 +686,14 @@ export const gardenPlugin = () =>
674
686
schema : containerTestActionSchema ( ) ,
675
687
runtimeOutputsSchema : containerTestOutputSchema ( ) ,
676
688
handlers : {
689
+ async configure ( { config } ) {
690
+ if ( config . include === undefined && config . exclude === undefined ) {
691
+ // No reason to include files by default since the spec.image field is required and is enough to version the action
692
+ config . include = [ ]
693
+ }
694
+ return { config, supportedModes : { sync : false } satisfies ActionModes }
695
+ } ,
696
+
677
697
// Implemented by other providers (e.g. kubernetes)
678
698
async validate ( { action } ) {
679
699
validateRuntimeCommon ( action )
0 commit comments