As surrounding information and the impact of Log4j is continuing to evolve, we encourage customers who have manually configured GitLab SAST or Dependency scanning to a specific older version, to update their GitLab SAST configuration and Gemnasium-Maven configuration. Additionally any customer operating GitLab SAST or Dependency Scanning in an offline environment should manually refresh their downloaded SAST and Dependency Scanning analyzer images following the instructions below.
To start leveraging the latest and patched versions of these analyzers please update your SAST and Dependency Scanning includes in your gitlab-ci.yml file to reference the latest versions. Follow one of the two solutions below to update your SAST and Dependency scanning analyzers:
Recommended solution
We highly encourage customers to leverage our recommended includes which is as simple as the following line in your gitlabci.yml file:
include:
- template: Security/SAST.gitlab-ci.yml
Replacing your manual configuration with this template includes will automatically leverage the latest version of all GitLab’s SAST analyzers and keep them updated automatically.
The same is true of GitLab Dependency scanning. We highly encourage customers to leverage our recommended Dependency Scanning includes which is as simple as the following line in your gitlabci.yml file:
include:
- template: Security/Dependency-Scanning.gitlab-ci.yml
Alternative solution (major version pinning)
Alternatively, if you have manually set versions for specific reasons we encourage you to update your configurations to specify the latest patched versions of these analyzers, you can do that with the following gitlab-ci.yml code:
pmd-apex-sast:
variables:
SAST_ANALYZER_IMAGE_TAG: 2
spotbugs-sast:
variables:
SAST_ANALYZER_IMAGE_TAG: 2
Please note that these code changes will force the latest version of both PMD and Spotbugs to run automatically including any minor and patch version updates in the future.
Refreshes for customers operating GitLab in an offline environment
Also note that if you are operating GitLab in an offline environment, you likely need to refresh your own downloaded copy of these affected SAST analyzers, you can do that by following the instructions in our offline documentation.