Support raw_details
parameter for annotations generated by GitHub Actions
#122234
Unanswered
JojOatXGME
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
GitHub Actions currently doesn't allow specifying the
raw_details
property for annotations.1The
raw_details
of an annotation are visualized in the UI of GitHub after you click on the button labeled “Raw output”. It can be used for long text blocks like stack traces,Actions like
dorny/test-reporter@v1
andmikepenz/action-junit-report@v4
create a separate check run instead of publishing the annotations as part of the workflow job. I suspect that the missingraw_details
property is a major reason for that.2 Unfortunately, this creates another problem, as workflows triggered by pull requests my not have the necessary permissions.3To work around the new problem, the maintainers of these actions recommend creating a separate workflow for publishing the reports.
This adds another layer of complexity. I think the best solution would be if actions could create full-featured annotations without having to create their own check run. This should allow actions like
dorny/test-reporter@v1
to avoid these workarounds.PS: This workaround also caused further issues with the introduction of Artifacts v4.
Footnotes
You can see in the source code of the runner application, that there is no property exposed by the runner to specify the
raw_details
of a generated annotation.https://github.com/actions/runner/blob/f2c05de91c8a6448e86772d3c818c0d0e5e32474/src/Runner.Worker/ActionCommandManager.cs#L730-L738
As a result, the
@actions/core
library also doesn't let you specify this property.https://github.com/actions/toolkit/blob/ae38557bb0dba824cdda26ce787bd6b66cf07a83/packages/core/src/core.ts#L40-L71 ↩
I am not a maintainer of the actions. However, I am currently only aware of this limitation regarding
raw_details
. and a different visualization of the summary. ↩There is also a second problem related to this workaround described in Test report doesn't appear in expected place in GitHub UI dorny/test-reporter#67, JUnit report sent to wrong build mikepenz/action-junit-report#40 and Allow specifying workflow run when creating a checkrun from a GitHub workflow #14891. ↩
Beta Was this translation helpful? Give feedback.
All reactions