Skip to content

Replace blocked surefire-report action in Java CI - #535

Open
jamesfredley wants to merge 1 commit into
apache:masterfrom
jamesfredley:replace-blocked-surefire-report-action
Open

Replace blocked surefire-report action in Java CI#535
jamesfredley wants to merge 1 commit into
apache:masterfrom
jamesfredley:replace-blocked-surefire-report-action

Conversation

@jamesfredley

Copy link
Copy Markdown
Contributor

Summary

Java CI dies at startup on apache/grails-static-website because scacap/action-surefire-report is 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

  • Confirm Java CI starts (no "action not allowed" startup failure)
  • On a red check run, confirm the JUnit report step can publish

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
Copilot AI lite review requested due to automatic review settings August 19, 2026 20:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-report with mikepenz/action-junit-report (SHA-pinned) for publishing JUnit XML results on CI failures.
  • Removed the explicit github_token input 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.

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.

3 participants