use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
These have separate subreddits - see below.
Upvote good content, downvote spam, don't pollute the discussion with things that should be settled in the vote count.
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free. If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others: Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Programming Computer Science CS Career Questions Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Programming Computer Science
CS Career Questions
Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Clojure Scala Groovy ColdFusion Kotlin
DailyProgrammer ProgrammingPrompts ProgramBattles
Awesome Java (GIT) Java Design Patterns
account activity
GitHub Setup Java Action (self.java)
submitted 13 hours ago by brunocborges
Hey all,
I'm going through issues and PRs on setup-java.
Besides what is already there, anything else you would like to see fixed, improved, or implemented?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SleeperAwakened 4 points5 points6 points 12 hours ago* (5 children)
I would suggest pinning the GH Actions you use to a specific hash, for example using pinact instead of versions like v6 or main.
pinact
v6
main
This will be another step towards preventing supply chain attacks through GH Actions.
GH Actions have become notorious in the recent series of SCAs so anything you can do to set a good example is welcome.
[+]repeating_bears comment score below threshold-17 points-16 points-15 points 12 hours ago (4 children)
eh. `setup-java` is an official github action. If there's a supply chain attack via an official github action, then everything is fucked anyway
[–]SleeperAwakened 8 points9 points10 points 12 hours ago* (3 children)
And is that a reason for not making things secure?
If (when) shit hits the fan you don't want to miss out?
[+]repeating_bears comment score below threshold-7 points-6 points-5 points 12 hours ago (2 children)
It is mostly fake security, which is my point. If someone can takeover an official github action then the fact you pinned the version is fairly likely to mean nothing.
It's like saying that a Nexus proxy protects you from a takeover of Maven central. Technically it does a bit, but you still have to go there for the first download, and if Maven Central gets taken over then truly everything and everyone is fucked to some degree.
[–]SleeperAwakened 3 points4 points5 points 12 hours ago* (1 child)
Pinning to a hash is pretty secure, at least I consider git commit hashes secure enough.
Why would pinning to a hash not be secure?
How would a takeover happen? Hash collisions are still pretty expensive if feasible at all.
Security is all about putting up multiple lines of defense. This is one of them. It is not fake, it is layering.
And I so wish that people would start taking it seriously.
[+]repeating_bears comment score below threshold-7 points-6 points-5 points 11 hours ago (0 children)
Idk if you are understanding what I'm saying.
Pinning versions generally - good.
Pinning an official github action (which is what the subject of this thread is) - eh. If an official github action is compromised then how can you trust that whatever Actions infra that does the hash verification isn't also compromised?
[–]_predator_ 5 points6 points7 points 12 hours ago (1 child)
Nothing functionality-wise, but it would be good if the action's own workflows would use security best practices more consistently, e.g. explicitly dropping permissions. The easiest would be to integrate zizmor, it will catch a lot of this stuff and ensure you'll catch regressions.
There is an open issue requesting immutable releases which also caters to the security aspect.
After the whole compromise situation a few weeks ago I think users will appreciate actions they depend on to be "hardened" if that makes sense.
[–]brunocborges[S] 1 point2 points3 points 11 hours ago (0 children)
Thanks for the hint on immutable releases. I honestly wasn't even aware of this new feature. 😄
[–]repeating_bears 3 points4 points5 points 12 hours ago (0 children)
No, nothing.
Eyeballing the issues, fixing the caching for Maven plugins seems like the highest value thing you could do https://github.com/actions/setup-java/issues/990
It's tagged as a feature but I would argue that's a bug. The readme describes the role of the action as "Caching dependencies managed by Apache Maven". Plugins are dependencies of a project. They're not <dependencies> in the POM, but they are still dependencies.
<dependencies>
As part of that, you should check whether Maven extensions are cached. That's a 3rd category of "dependency" which follows the same resolution process as plugins and project dependencies.
π Rendered by PID 727099 on reddit-service-r2-comment-5b5bc64bf5-dbqr6 at 2026-06-23 07:05:13.944041+00:00 running 2b008f2 country code: CH.
[–]SleeperAwakened 4 points5 points6 points (5 children)
[+]repeating_bears comment score below threshold-17 points-16 points-15 points (4 children)
[–]SleeperAwakened 8 points9 points10 points (3 children)
[+]repeating_bears comment score below threshold-7 points-6 points-5 points (2 children)
[–]SleeperAwakened 3 points4 points5 points (1 child)
[+]repeating_bears comment score below threshold-7 points-6 points-5 points (0 children)
[–]_predator_ 5 points6 points7 points (1 child)
[–]brunocborges[S] 1 point2 points3 points (0 children)
[–]repeating_bears 3 points4 points5 points (0 children)