Replace blocked surefire-report action in Java CI - #535
Open
jamesfredley wants to merge 1 commit into
Open
Conversation
scacap/action-surefire-report is not on the ASF GitHub Actions allowlist and fails the workflow at startup. Switch the failure report step to mikepenz/action-junit-report, which is allowlisted. Assisted-by: Sisyphus:grok-4.6
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Java CI workflow to avoid GitHub Actions startup failure caused by a non-allowlisted third-party action, by switching the test-report publishing step to an allowlisted JUnit report action.
Changes:
- Replaced
scacap/action-surefire-reportwithmikepenz/action-junit-report(SHA-pinned) for publishing JUnit XML results on CI failures. - Removed the explicit
github_tokeninput from the report step (the new action supports defaulting to the workflow token).
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
sbglasius
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Java CI dies at startup on
apache/grails-static-websitebecausescacap/action-surefire-reportis not on the ASF GitHub Actions allowlist.Example: https://github.com/apache/grails-static-website/actions/runs/32297211217
Replace that failure-report step with
mikepenz/action-junit-report@v6.4.2, which is allowlisted (mikepenz/action-junit-report@*in approved_patterns.yml). SHA-pinned to match the rest of the workflows.No other
uses:in this repo is blocked.actions/*is auto-allowed;gradle/actions/setup-gradle@50e97c2...already matches an allowlisted SHA.Test plan
checkrun, confirm the JUnit report step can publish