diff options
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a0865ada..865aa4c6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -334,18 +334,6 @@ semgrep-sast: needs: [] cache: - *cache_go_configuration - variables: - GOPATH: "/go" - before_script: - # Our pipeline places GOPATH to $CI_PROJECT_DIR/.go so it can be cached. - # This causes gosec-sast to find the module cache and scan all the sources of - # the dependencies as well. This makes the scan time grow massively. This is - # avoided by this job moving the GOPATH outside of the project directory along - # with the cached modules if they were successfully extracted. - # - # SAST_EXCLUDED_PATHS is not sufficient as it only filters out the results but - # still performs the expensive scan. - - if [ -d .go ]; then mv .go $GOPATH; fi rules: - if: $SAST_DISABLED when: never |