Skip to content

Add header files for semgrep SAST to scan header file only SAST projects

Isaac Dawson requested to merge idawson-add-header-files-semgrep-sast into master

What does this MR do and why?

Adds .h and .hpp to have semgrep sast trigger a scan against a project that only has header files (single file libraries).

This is a two step process to ensure semgrep analyzer and our templates match, see #398573 for more details.

Update 2 files

  • /lib/gitlab/ci/templates/Jobs/SAST.gitlab-ci.yml
  • /lib/gitlab/ci/templates/Jobs/SAST.latest.gitlab-ci.yml

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Isaac Dawson

Merge request reports