Skip to content

Commit

Permalink
Merged in feature/MTM-30857/scan_csharp_sdk (pull request #14)
Browse files Browse the repository at this point in the history
[MTM-30857]: Configuration for scanning C# SDK [CYJ] product

Approved-by: Kumar Pallav
Approved-by: Jakub Kotorowicz
  • Loading branch information
c8y-kh4mell committed Sep 30, 2020
2 parents 392c9dd + e9133dc commit 188105a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .jenkins/scripts/scan_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [ -z "$TPP_FETCHER_URL" ]; then TPP_FETCHER_URL="http://172.30.0.129:8083"; fi


if [[ -e Tpp.toml ]] ; then
curl -sS -o tpp-scanner ${TPP_FETCHER_URL}/tpp-scanner \
&& chmod +x tpp-scanner \
&& ./tpp-scanner -tpp-fetcher-url ${TPP_FETCHER_URL} \
&& rm tpp-scanner
exit 0
fi

24 changes: 24 additions & 0 deletions Tpp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ $version := env "RELEASE_VERSION" }}

name = "c8y-connection-sdk"
revision = "{{ $version }}"

[[scan]]
type = "VSC#"
path = "MicroservicesSDK/src/Cumulocity.AspNetCore.Authentication.Basic/Cumulocity.AspNetCore.Authentication.Basic.csproj"
excludes = ["com.nsn.cumulocity"]

[[scan]]
type = "VSC#"
path = "MicroservicesSDK/src/Cumulocity.SDK.Microservices/Cumulocity.SDK.Microservices.csproj"
excludes = ["com.nsn.cumulocity"]

[[scan]]
type = "VSC#"
path = "DeviceSDK/MQTT/src/MQTT.Client.NetStandard/MQTT.NetStandard.csproj"
excludes = ["com.nsn.cumulocity"]

[[scan]]
type = "VSC#"
path = "DeviceSDK/MQTT/src/MQTT.Client.NetFramework/MQTT.NetFramework.csproj"
excludes = ["com.nsn.cumulocity"]

0 comments on commit 188105a

Please sign in to comment.