@@ -389,7 +389,8 @@ func TestOTelReporter_GitHubAttributes(t *testing.T) {
389389 _ = os .Setenv ("GITHUB_JOB" , "test-job" )
390390 _ = os .Setenv ("GITHUB_ACTOR" , "test-user" )
391391 _ = os .Setenv ("GITHUB_REPOSITORY" , "test-org/test-repo" )
392- _ = os .Setenv ("GITHUB_REF" , "refs/heads/main" )
392+ _ = os .Setenv ("GITHUB_REF" , "refs/pull/123/merge" )
393+ _ = os .Setenv ("GITHUB_HEAD_REF" , "feature-branch" )
393394 _ = os .Setenv ("GITHUB_SHA" , "abc123def456" )
394395 _ = os .Setenv ("GITHUB_SERVER_URL" , "https://github.com" )
395396 _ = os .Setenv ("GITHUB_WORKFLOW_REF" , "test-org/test-repo/.github/workflows/test.yml@refs/heads/main" )
@@ -453,7 +454,8 @@ func TestOTelReporter_GitHubAttributes(t *testing.T) {
453454 "github.job" : "test-job" ,
454455 "github.actor" : "test-user" ,
455456 "github.repository" : "test-org/test-repo" ,
456- "github.ref" : "refs/heads/main" ,
457+ "github.ref" : "refs/pull/123/merge" ,
458+ "github.head_ref" : "feature-branch" ,
457459 "github.sha" : "abc123def456" ,
458460 "github.server_url" : "https://github.com" ,
459461 "github.workflow_ref" : "test-org/test-repo/.github/workflows/test.yml@refs/heads/main" ,
0 commit comments