diff --git a/pkg/workflow/action_sha_checker_integration_test.go b/pkg/workflow/action_sha_checker_integration_test.go index f095da8c07e..c44c4db4d32 100644 --- a/pkg/workflow/action_sha_checker_integration_test.go +++ b/pkg/workflow/action_sha_checker_integration_test.go @@ -36,7 +36,7 @@ func TestActionSHAValidationIntegration(t *testing.T) { // Create a lock file with the same SHAs (up-to-date scenario) lockFile := filepath.Join(tmpDir, "test.lock.yml") - lockContent := ` + lockContent := `# gh-aw-metadata: {"schema_version":"v1"} name: Test Workflow on: push jobs: @@ -61,7 +61,7 @@ jobs: // Create a lock file with outdated SHAs outdatedLockFile := filepath.Join(tmpDir, "outdated.lock.yml") - outdatedContent := ` + outdatedContent := `# gh-aw-metadata: {"schema_version":"v1"} name: Test Workflow on: push jobs: @@ -92,7 +92,7 @@ func TestActionSHAValidationWithMissingCache(t *testing.T) { // Create a lock file lockFile := filepath.Join(tmpDir, "test.lock.yml") - lockContent := ` + lockContent := `# gh-aw-metadata: {"schema_version":"v1"} name: Test Workflow on: push jobs: @@ -122,7 +122,7 @@ func TestExtractActionsFromRealLockFile(t *testing.T) { lockFile := filepath.Join(tmpDir, "realistic.lock.yml") // Create a more realistic lock file with multiple jobs and steps - lockContent := ` + lockContent := `# gh-aw-metadata: {"schema_version":"v1"} # This file was automatically generated by gh-aw name: CI Workflow on: @@ -200,7 +200,7 @@ func TestValidationMessageFormat(t *testing.T) { tmpDir := testutil.TempDir(t, "test-*") lockFile := filepath.Join(tmpDir, "test.lock.yml") - lockContent := ` + lockContent := `# gh-aw-metadata: {"schema_version":"v1"} name: Test on: push jobs: @@ -232,7 +232,7 @@ func TestActionUsageVersionPopulation(t *testing.T) { lockFile := filepath.Join(tmpDir, "test.lock.yml") // Use an action that exists in action_pins.json - lockContent := ` + lockContent := `# gh-aw-metadata: {"schema_version":"v1"} name: Test on: push jobs: