(maint) Bump Ruby in static analysis workflow
Bump Ruby version in the static code analysis workflow to 2.6, as 2.5 will be EOL soon.