@@ -223,6 +223,7 @@ func createTmpFile(content string) (string, error) {
223223// Test_attestCmd tests the attest command.
224224func Test_attestCmd_default_single_artifact (t * testing.T ) {
225225 t .Setenv ("GITHUB_CONTEXT" , "{}" )
226+ t .Setenv ("VARS_CONTEXT" , "{}" )
226227
227228 // Change to temporary dir
228229 currentDir , err := os .Getwd ()
@@ -265,6 +266,7 @@ func Test_attestCmd_default_single_artifact(t *testing.T) {
265266
266267func Test_attestCmd_default_multi_artifact (t * testing.T ) {
267268 t .Setenv ("GITHUB_CONTEXT" , "{}" )
269+ t .Setenv ("VARS_CONTEXT" , "{}" )
268270
269271 // Change to temporary dir
270272 currentDir , err := os .Getwd ()
@@ -309,6 +311,7 @@ b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c artifact2`)))
309311
310312func Test_attestCmd_custom_provenance_name (t * testing.T ) {
311313 t .Setenv ("GITHUB_CONTEXT" , "{}" )
314+ t .Setenv ("VARS_CONTEXT" , "{}" )
312315
313316 // Change to temporary dir
314317 currentDir , err := os .Getwd ()
@@ -352,6 +355,7 @@ func Test_attestCmd_custom_provenance_name(t *testing.T) {
352355
353356func Test_attestCmd_invalid_extension (t * testing.T ) {
354357 t .Setenv ("GITHUB_CONTEXT" , "{}" )
358+ t .Setenv ("VARS_CONTEXT" , "{}" )
355359
356360 // Change to temporary dir
357361 currentDir , err := os .Getwd ()
@@ -405,6 +409,7 @@ func Test_attestCmd_invalid_extension(t *testing.T) {
405409
406410func Test_attestCmd_invalid_path (t * testing.T ) {
407411 t .Setenv ("GITHUB_CONTEXT" , "{}" )
412+ t .Setenv ("VARS_CONTEXT" , "{}" )
408413
409414 // Change to temporary dir
410415 currentDir , err := os .Getwd ()
@@ -460,6 +465,7 @@ func Test_attestCmd_invalid_path(t *testing.T) {
460465// subjects in subdirectories.
461466func Test_attestCmd_subdirectory_artifact (t * testing.T ) {
462467 t .Setenv ("GITHUB_CONTEXT" , "{}" )
468+ t .Setenv ("VARS_CONTEXT" , "{}" )
463469
464470 // Change to temporary dir
465471 currentDir , err := os .Getwd ()
0 commit comments