Commit 4a633494 authored by Fabien Catteau's avatar Fabien Catteau Committed by Markus Koller

Add NuGet lock file support

Add NuGet lock file to the rules:exists
of the Gemnasium Dependency scanning job.

See https://gitlab.com/gitlab-org/gitlab/-/issues/225219
parent 4609c45f
---
title: "Add NuGet lock files support to Dependency Scanning CI template"
merge_request: 37553
author:
type: added
......@@ -67,6 +67,7 @@ RSpec.describe 'Dependency-Scanning.gitlab-ci.yml' do
'Javascript yarn.lock' | { 'yarn.lock' => '' } | %w(gemnasium-dependency_scanning)
'Javascript npm-shrinkwrap.json' | { 'npm-shrinkwrap.json' => '' } | %w(gemnasium-dependency_scanning)
'Multiple languages' | { 'pom.xml' => '', 'package.json' => '' } | %w(gemnasium-maven-dependency_scanning retire-js-dependency_scanning)
'NuGet' | { 'packages.lock.json' => '' } | %w(gemnasium-dependency_scanning)
'PHP' | { 'composer.lock' => '' } | %w(gemnasium-dependency_scanning)
'Python requirements.txt' | { 'requirements.txt' => '' } | %w(gemnasium-python-dependency_scanning)
'Python requirements.pip' | { 'requirements.pip' => '' } | %w(gemnasium-python-dependency_scanning)
......
......@@ -111,6 +111,7 @@ gemnasium-dependency_scanning:
- '{npm-shrinkwrap.json,*/npm-shrinkwrap.json,*/*/npm-shrinkwrap.json}'
- '{package-lock.json,*/package-lock.json,*/*/package-lock.json}'
- '{yarn.lock,*/yarn.lock,*/*/yarn.lock}'
- '{packages.lock.json,*/packages.lock.json,*/*/packages.lock.json}'
gemnasium-maven-dependency_scanning:
extends: .ds-analyzer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment