How To Leverage Static Code Analysis In Your CICD .

3y ago
29 Views
2 Downloads
2.27 MB
32 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Sabrina Baez
Transcription

How to leverage static code analysis in yourCICD pipelines for continuous code qualityDana EppMicrosoft Regional Directorhttps://danaepp.com

When the code is incorrect, youcan't really talk about security.When the code is faulty, itcannot be safe.- Gene ‘Spaf’ Spafford

Quality is not an act,it is a habit.-- Aristotle

If you can’t champion codequality with your team, howcan you ever champion securecode?- Dana Epp

Passing static code analysisdoesn’t prove your code issafe but failing it pretty muchsignals it isn’t.- Dana Epp

WHY IS THAT?

Most studies show that inspectionis cheaper than testing. [We] foundthat code reading detected 80%more faults per hour than testing.- Basili and Selby 1987

Comparing defect detection approaches

What canstatic code analysisdo for me?

Know the quality of your code at all times

Detect bugs

Detect ‘code smells’

Explore more execution paths

Discover cognitive complexity issues

Find security vulnerabilities

Review security ‘hotspots’

Enforce security best practices

Untrusted input analysis (taint analysis)

OWASP / SANS security reports RequiresSonarQubeEnterprise

OWASP / SANS security reports Available inSonarCloud

Our DevOps toolchainAzure BoardsAzure ReposAzure PipelinesAzure Artifacts

Our Stack Typescript code targeting NodeJS deployed to Web Appfor Containers C code targeting Linux shell deployed to AzureContainer Instances C# code targeting .NET Core 3.1 deployed to AzureContainer Instances C# code targeting .NET Core 2.1 deployed to AzureFunctions Typescript code targeting Angular 8 deployed to AzureCDN / Frontdoor

Languages SonarQube supports

We start with SonarLint – Democratize quality

We enforce peer code review before mergeRequire at least one othercode reviewerDon’t allow requestor toapprove their own workRequire all code to belinked to work on theboard

Merge triggers build pipelineInject static code analysis agent intobuild environment, configured toyour project in SonarCloudExecute static code analysisReport results to SonarCloud

Build success triggersrelease pipelineEnable Deployment GatesQuality Gate enforcement

More information / linksTools Azure DevOps : https://dev.azure.com SonarLint : https://www.sonarlint.org/ SonarQube : https://www.sonarqube.org/ SonarCloud: https://www.sonarcloud.ioFollow Dana Epp: https://danaepp.com AuditWolf: https://www.auditwolf.com

Questions?Dana EppMicrosoft Regional Directorhttps://danaepp.com

Merge triggers build pipeline Inject static code analysis agent into build environment, configured to your project in SonarCloud. Execute static code analysis . Report results to SonarCloud. Build success triggers release pipeline Enable Deployment Gates. Quality Gate enforcement

Related Documents:

Forex lot size and leverage Leverage and lot size in trading, how they relate and work in forex trading. Definitions Financial leverage or simply leverage is a tool that increases the purchasing power of the trader’s deposit. The mechanism is funded by the broker, or rather the liquidity provider working with the broker.

Leverage Values Outliers in X can be identified because they will have large leverage values. The leverage is just hii from the hat matrix. In general, 0 1 hii and h pii Large leverage values indicate the ith case is distant from the center of all X obs. Leverage considered large if it is bigger than

Leverage and the Hat matrix 1. The hat matrix transforms Y into the predicted scores. 2. The diagonals of the hat matrix indicate which values will be outliers or not. 3. The diagonals are therefore measures of leverage. 4. Leverage is bounded by two limits: 1/n and 1. The closer the leverage is to unity, the more leverage the value has. 5.

3M ª Metal-in Static Shielding Bag SCC 1000, Open Top and Ziptop . Static Shielding Bag SCC 1300 3M . 3M ª Metal-Out Static Shielding Bag SCC 1500, Open Top and Ziptop 3M Metal-Out Cushioned Static Shielding Bag 2120R Metal-in Shield Bags are intended to provide a static safe environment for electronic devices. Metal-in Shield Bags

Static routes are manually configured and define an explicit . Configuring an IPv6 static route is very similar to IPv4 except that the command is now ipv6 route. The following must be configured before entering a static . IPv6 also has a default static route similar to the IPv4 quad zero (0.0.0.0) static default route. Instead, the IPv6 .

Configure IP Default Static Routes Default Static Route (Cont.) IPv4 Default Static Route: The command syntax for an IPv4 default static route is similar to any other IPv4 static route, except that the network address is0.0.0.0and the subnet mask is0.0.0.0. The 0.0.0.0 0.0.0.0 in the route will match any network address.

Module Objective: Troubleshoot static and default route configurations. Topic Title Topic Objective Packet Processing with Static Routes Explain how a router processes packets when a static route is configured. Troubleshoot IPv4 Static and Default Route Configuration Troubleshoot common static and default route configuration issues.

Verizon High Speed Internet for Business . Your New Static IP Connection and Set-Up . This Static IP Set Up Guide will instruct you how to set up your new Static IP Connection and Multiple Static IP addresses (if applicable). Static IP addresses have a dedicated IP address on the Internet while Dynamic IP addresses constantly