Skip to content

ci: use workflow_run to publish test results on fork PRs (backport #2450)#2458

Merged
jbonofre merged 1 commit intoapache:karaf-4.4.xfrom
jbonofre:backport-2450-karaf-4.4.x
Mar 18, 2026
Merged

ci: use workflow_run to publish test results on fork PRs (backport #2450)#2458
jbonofre merged 1 commit intoapache:karaf-4.4.xfrom
jbonofre:backport-2450-karaf-4.4.x

Conversation

@jbonofre
Copy link
Copy Markdown
Member

Summary

Backport of #2450 to karaf-4.4.x.

  • Move test result publishing from the CI workflow to a separate ci-test-results.yml workflow triggered by workflow_run
  • This runs in the base repo context with write access, fixing fork PR test result publishing
  • Remove now-unnecessary checks: write and pull-requests: write permissions from the test job

…ache#2450)

The publish-unit-test-result-action requires write permissions to post
PR comments and check runs, but fork PRs run with read-only tokens.
Move test result publishing to a separate workflow triggered by
workflow_run, which runs in the base repo context with write access.
@jbonofre jbonofre merged commit 3918d99 into apache:karaf-4.4.x Mar 18, 2026
2 checks passed
@jbonofre jbonofre deleted the backport-2450-karaf-4.4.x branch March 18, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant