Update spotbugs major version in SAST templates

Description

As discussed in this comment, we're unable to bump SpotBugs to v6 for the stable CI template as it contains a breaking change that was not approved. As a result, the default SpotBugs job will remain on v5 for the 18.x milestones.

We have bumped Spotbugs to v6 in the latest CI template as part of the %18.0 release: !188953 (merged)

For context v6 was released as part of Add JDK 21 to SpotBugs-based SAST analyzer (#448708 - closed)

JDK 21 requires manual pin to SpotBugs v6

If users need JDK21 support, they must manually pin to SpotBugs v6 by following these steps.

Related

Add JDK 21 to SpotBugs-based SAST analyzer (#448708 - closed) • Jason Leasure • 17.9 • On track

Implementation plan

Edited by Adam Cohen