Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 2e29011

Browse files
authored
DevSkim warnings addressed. (#408)
* DevSkim warning suppressions. * Removed code enabling TLS 1.2 (assuming by now it is enabled by default). * Suppression that works with new devskim
1 parent 18f153a commit 2e29011

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

build/common.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Function Invoke-BuildStep {
151151
$completed = $false
152152

153153
try {
154-
Invoke-Command $Expression -ArgumentList $Arguments -ErrorVariable err
154+
Invoke-Command $Expression -ArgumentList $Arguments -ErrorVariable err #DevSkim: ignore DS104456. Internal build tool called from our build scripts.
155155
$completed = $true
156156
}
157157
finally {
@@ -906,7 +906,7 @@ Function Install-PrivateBuildTools() {
906906
$commit = $env:PRIVATE_BUILD_TOOLS_COMMIT
907907

908908
if (-Not $commit) {
909-
$commit = '4b7460b2e08249e4c65307e5383dfba7fe4da8b7'
909+
$commit = '4b7460b2e08249e4c65307e5383dfba7fe4da8b7' #DevSkim: ignore DS173237. Not a token/secret. It is a git commit hash.
910910
}
911911

912912
if (-Not $repository) {

build/runcodeanalysis.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ param (
1212
[string]$FxCopOutputDirectory
1313
)
1414

15-
# Enable TLS 1.2 since GitHub requires it.
16-
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
17-
1815
# To avoid repository dependencies, this script relies on the following assumptions:
1916
# - parent directory contains a single *.sln
2017
# - parent directory contains a build.ps1

0 commit comments

Comments
 (0)