SAST not compatible JDK 16

Summary

SAST is not compatible JDK 16 Even when attempting to force JDK 16 to be used through environment variables manipulation

Steps to reproduce

Launch SAST on a java 16 project.

Attempt to force JDK 16 to be used

include:
- template: Security/SAST.gitlab-ci.yml
spotbugs-sast:
  before_script:
    - '[ $SAST_JAVA_VERSION != "8" ] && asdf install java openjdk-$SAST_JAVA_VERSION && asdf global java openjdk-$SAST_JAVA_VERSION'
  variables:
    SAST_JAVA_VERSION: 16
sast:
  before_script:
    - rm .tool-versions 2> /dev/null
  stage: test

Validate that we can't both run asdfcommands, and force the version to be JDK 16

image

Edited by Tiago Casinhas