Skip to content

Improve CI permissions and fix Java for JRuby 10#1141

Closed
tagliala wants to merge 1 commit intoRubyMoney:mainfrom
tagliala:chore/improve-ci
Closed

Improve CI permissions and fix Java for JRuby 10#1141
tagliala wants to merge 1 commit intoRubyMoney:mainfrom
tagliala:chore/improve-ci

Conversation

@tagliala
Copy link
Contributor

Workflows run with extended set of permissions by default. By specifying any permission explicitly, all others are set to none.

Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

JRuby 10.0 Requires Java 21 but Java 17 was used. This is causing a spec to fail when shared_context_metadata_behavior is set to :apply_to_host_groups.

From the CI logs:

Error: LinkageError occurred while loading main class org.jruby.Main
java.lang.UnsupportedClassVersionError: org/jruby/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
JRuby failed to start, try Java 21 envs

Workflows run with extended set of permissions by default.
By specifying any permission explicitly, all others are set to none.

Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

JRuby 10.0 Requires Java 21 but Java 17 was used. This is causing a spec
to fail when `shared_context_metadata_behavior` is set to
`:apply_to_host_groups`.

From the CI logs:

```
Error: LinkageError occurred while loading main class org.jruby.Main
java.lang.UnsupportedClassVersionError: org/jruby/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
JRuby failed to start, try Java 21 envs
```
@tagliala tagliala changed the title Improve CI permissions and fix JAVA for JRuby 10 Improve CI permissions and fix Java for JRuby 10 Jul 13, 2025
@tagliala tagliala closed this Jul 13, 2025
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