<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wayne Campbell on Medium]]></title>
        <description><![CDATA[Stories by Wayne Campbell on Medium]]></description>
        <link>https://medium.com/@wayne.campbell_25680?source=rss-2c323341f9ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LKG0pHDGyKa3z_vr7QRhBg.jpeg</url>
            <title>Stories by Wayne Campbell on Medium</title>
            <link>https://medium.com/@wayne.campbell_25680?source=rss-2c323341f9ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:05:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wayne.campbell_25680/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DevSecOps Governance (Part 3): Implementing Dynamic Application Security Testing (DAST) in Build…]]></title>
            <link>https://medium.com/capgemini-microsoft-team/devsecops-governance-part-3-implementing-dynamic-application-security-testing-dast-in-build-641c89d6901c?source=rss-2c323341f9ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/641c89d6901c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Wayne Campbell]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 11:35:23 GMT</pubDate>
            <atom:updated>2026-06-30T11:35:23.611Z</atom:updated>
            <content:encoded><![CDATA[<h3>DevSecOps Governance (Part 3): Implementing Dynamic Application Security Testing (DAST) in Build Pipelines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nazQgqPin0NFfq66" /><figcaption>Photo by <a href="https://unsplash.com/@hdbernd?utm_source=medium&amp;utm_medium=referral">Bernd 📷 Dittrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Following on from my original blog <strong>‘</strong><a href="https://medium.com/capgemini-microsoft-team/when-shift-left-leaves-the-back-door-open-why-governance-matters-more-than-ever-44616f351379"><strong>When “Shift‑Left” Leaves the Back Door Open: Why Governance Matters More Than Ever</strong></a>‘ this is part 3 of a 3 part follow up series where I’ll discuss practical tools and strategies I’ve used to implement some of the security considerations I outlined in the aforementioned post.</p><p>In <a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies-e4ac841315c7"><strong>Part 1</strong></a> I discussed Tooling, Secret Scanning, Branch and Security policies and pre-deployment gates. In <a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-e08916a899da"><strong>Part 2</strong></a> I discussed building SAST and SCA scanning into build pipelines.</p><p>In this final post I’ll dive deeper into <strong>Dynamic Application Security Testing</strong> (<strong>DAST) </strong>and how we can build in active security testing into our pipelines once our web applications have been deployed to our hosting environments.</p><h3>Implementing DAST scanning into build pipelines</h3><p>What is DAST and why do we need it?</p><p>DAST is all about testing the integrity and security of web applications post deployment. DAST is essentially designed to attempt to hack your website after you’ve deployed new changes and is typically triggered at the end of your build pipeline and will fail the build if any problems are discovered.</p><p>DAST is effective only if the application is running, iterating the various endpoints and looks for issues such as weak authentication, injection attacks (SQL), Cross-site scripting (XSS), Input validation, security header misconfigurations, server misconfigurations, runtime security vulnerabilities.</p><p>Many teams choose to build DAST into the build pipeline and runs AFTER the new web application has been deployed.</p><p>As DAST isn’t built into GitHub Advanced Security (I discussed GHAS in parts 1 and 2) it required a third party Open Source tool. In this example the tool of choice was <a href="https://github.com/zaproxy"><strong>OWASP Zap</strong></a> which is free, easy to configure and highly reputable.</p><p>Whilst the DAST execution logic is configured in the main build pipeline there is a dependency on a plan *.yaml file which acts as the DAST definition configuration.</p><p>The other key thing to remember is if your web application requires authentication — you will need to build this into the pipeline workstream. <a href="https://playwright.dev/"><strong>Playwright</strong> </a>is good for this. You just need a test account with username and password (securely stored of course!).</p><p>If authenticated scanning is required, teams could use a dedicated non-privileged test account in a tightly controlled non-production environment, subject to organisational security policy and appropriate compensating controls. Any exceptions to standard authentication controls should be formally reviewed and approved by the relevant security stakeholders.</p><p>Below is an example of a DAST implementation I built into an application yaml build pipeline. The environmental variables below represent the key dynamic configuration values</p><ul><li>WEBAPP_BASE_URL: The url of the website being tested</li><li>WEBAPP_LOGIN_ENDPOINT: The specific authentication endpoint for the url being tested</li><li>TEST_USER_NAME: The user name for the test login account</li><li>TEST_USER_PASSWORD: The password for the test user account</li></ul><p>Example DAST snippet. Run this after your code has deployed at the end of your yaml pipeline</p><pre># ============================================================<br>#   DAST Stage (Authenticated via Browser Automation)<br># ============================================================<br><br>##This scan is configured NOT to RUN on PR commits<br><br>- stage: DAST_SCAN<br>  displayName: &quot;DAST Scan (Authenticated)&quot;<br>  condition: ne(variables[&#39;Build.Reason&#39;], &#39;PullRequest&#39;)<br><br>  variables:<br>    - group: webAppAuthSecrets   # &lt;-- Variable group containing credentials + app URLs for this environment<br><br>  jobs:<br>    - job: DAST_TEST<br>      displayName: &quot;Run Authenticated DAST Scan&quot;<br>      pool:<br>        vmImage: &#39;ubuntu-latest&#39;<br><br>      steps:<br>        - checkout: self<br><br>        # ------------------------------------------------------<br>        # Install Node + Playwright Browser Automation Framework<br>        # ------------------------------------------------------<br>        - task: NodeTool@0<br>          inputs:<br>            versionSpec: &#39;18.x&#39;<br>          displayName: &quot;Install Node.js&quot;<br><br>        - script: |<br>            npm install -D playwright<br>            npx playwright install --with-deps chromium<br>          displayName: &quot;Install Browser Automation Dependencies&quot;<br><br>        # ------------------------------------------------------<br>        # STEP 1 — Authenticate using a scripted browser login<br>        # Produces an authenticated session cookie or token and runs in a headless browser session<br> # Make sure you have a Playwright browser-login.js file with login logic located at the &#39;security/auth/&#39; directory<br> # Make sure you have a DAST configuration file dast-plan.yaml located at the &#39;security/dast/&#39; directory<br>        # ------------------------------------------------------<br>        - script: |<br>            set -e<br>            echo &quot;Running scripted login to obtain session...&quot;<br><br>            node security/auth/browser-login.js<br><br>            AUTH_COOKIE=$(cat auth_cookie.txt)<br>            if [ -z &quot;$AUTH_COOKIE&quot; ]; then<br>              echo &quot; Authentication step produced no session token/cookie&quot;<br>              exit 1<br>            fi<br><br>            echo &quot;##vso[task.setvariable variable=AUTH_COOKIE]$AUTH_COOKIE&quot;<br>            echo &quot;Authentication complete.&quot;<br>          displayName: &quot;Run Authenticated Browser Login&quot;<br>          env:<br>            WEBAPP_BASE_URL: $(WEBAPP_BASE_URL)<br>            WEBAPP_LOGIN_ENDPOINT: $(WEBAPP_LOGIN_ENDPOINT)<br>            TEST_USER_NAME: $(TEST_USER_NAME)<br>            TEST_USER_PASSWORD: $(TEST_USER_PASSWORD)<br><br>        # ------------------------------------------------------<br>        # STEP 2 — Load DAST Scan Plan<br>        # ------------------------------------------------------<br>        - script: |<br>            set -e<br>            PLAN_SRC=&quot;security/dast/dast-plan.yaml&quot;<br>            PLAN_DST=&quot;$(Pipeline.Workspace)/dast-plan.yaml&quot;<br><br>            if [ ! -f &quot;$PLAN_SRC&quot; ]; then<br>              echo &quot; Missing scan plan configuration: $PLAN_SRC&quot;<br>              exit 1<br>            fi<br><br>            cp &quot;$PLAN_SRC&quot; &quot;$PLAN_DST&quot;<br>            echo &quot;----- DAST Scan Plan -----&quot;<br>            cat &quot;$PLAN_DST&quot;<br>          displayName: &quot;Load DAST Scan Plan&quot;<br><br>        # ------------------------------------------------------<br>        # STEP 3 — Execute DAST Scan Container<br>        # Generic: replace with any DAST engine container.<br> # Runs as a docker container<br> #-u: ensures process runs as root inside the container so that directories can be written too etc<br> #-e: grabs and sets the authentication context for the logged in user via the cookie obtained from the Playwright login step earlier and also sets the SUT url<br> #-v: mounts the working pipeline in the container and sets where to output the results of the scan<br> #scan.sh: loads the scan plan, configures the authentication headers, runs spidering, sets attack levels i.e. active or passive (active is a more aggressive scan form then passive<br>        # ------------------------------------------------------<br>        - script: |<br>            set -e<br>            mkdir -p &quot;$(Pipeline.Workspace)/TestResults&quot;<br><br>            echo &quot;Running DAST scan against target: $(WEBAPP_BASE_URL)&quot;<br>            TARGET_HOST=$(echo $(WEBAPP_BASE_URL) | sed -E &#39;s#https?://([^/]+)/?.*#\1#&#39;)<br><br>            docker run --rm \<br>              -u 0:0 \<br>              -e AUTH_HEADER_NAME=&quot;Cookie&quot; \<br>              -e AUTH_HEADER_VALUE=&quot;$(AUTH_COOKIE)&quot; \<br>              -e AUTH_HEADER_DOMAIN=&quot;$TARGET_HOST&quot; \<br>              -v &quot;$(Pipeline.Workspace)&quot;:/scan/work \<br>              -v &quot;$(Pipeline.Workspace)/TestResults&quot;:/scan/output \<br>              $(DAST_ENGINE_IMAGE) \<br>              scan.sh --plan /scan/work/dast-plan.yaml --loglevel DEBUG \<br>              2&gt;&amp;1 | tee &quot;$(Pipeline.Workspace)/dast_output.log&quot;<br><br>            echo &quot; DAST scan complete.&quot;<br>          displayName: &quot;Run DAST Scan (Authenticated)&quot;<br><br>        # ------------------------------------------------------<br>        # STEP 4 — Fail Only on High Severity Findings<br>        # Generic XML/JSON parsing to detect critical results.<br>        # ------------------------------------------------------<br>        - script: |<br>            set -e<br>            REPORT=&quot;$(Pipeline.Workspace)/TestResults/dast-report.xml&quot;<br><br>            if [ ! -f &quot;$REPORT&quot; ]; then<br>              echo &quot; Missing DAST report: $REPORT&quot;<br>              tail -n 200 &quot;$(Pipeline.Workspace)/dast_output.log&quot; || true<br>              exit 1<br>            fi<br><br>            echo &quot;Scanning DAST report for HIGH severity issues...&quot;<br>            if grep -q &quot;&lt;riskcode&gt;3&lt;/riskcode&gt;&quot; &quot;$REPORT&quot;; then<br>              echo &quot; High severity vulnerabilities detected!&quot;<br>              exit 1<br>            fi<br><br>            echo &quot; No HIGH severity vulnerabilities found.&quot;<br>          displayName: &quot;Fail Only on HIGH Severity&quot;<br><br>        # ------------------------------------------------------<br>        # STEP 5 — Publish Results<br>        # ------------------------------------------------------<br>        - task: PublishBuildArtifacts@1<br>          inputs:<br>            PathtoPublish: &quot;$(Pipeline.Workspace)/TestResults&quot;<br>            ArtifactName: &quot;DAST-Scan-Results&quot;<br>            publishLocation: &quot;Container&quot;<br>          displayName: &quot;Publish DAST Results&quot;</pre><p>An example of the Playwright login file (referred to as <strong>browser-login.js</strong> in the pipeline logic). This does the heavy lifting of logging into the website, and generating the authentication cookie for DAST to reuse and authenticate</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a9593a47c5e58a0955114a1d1f59257/href">https://medium.com/media/6a9593a47c5e58a0955114a1d1f59257/href</a></iframe><p>Example of the DAST plan *.yaml file (referred to as the <strong>dast-plan.yaml </strong>in the DAST pipeline snippet). Sets configuration values for the test url, the authentication type, whether it’s active or passive testing (or both), where to output the report, and what criteria to fail on.</p><pre>env:<br>  contexts:<br>    - name: testmysite<br>      urls:<br>        - &quot;https://www.mytestsite.com/&quot;<br>      includePaths:<br>        - &quot;https://www.mytestsite.com/.*&quot;<br>      authentication:<br>        method: &quot;manual&quot;<br>      sessionManagement:<br>        method: &quot;cookie&quot;<br><br>jobs:<br>  # -------------------------------------------<br>  # Crawl the web site<br>  # -------------------------------------------<br>  - type: spider<br>    parameters:<br>      context: &quot;testmysite&quot;<br>      maxDuration: 3<br><br>  # -------------------------------------------<br>  # Wait for passive scanning to finish<br>  # -------------------------------------------<br>  - type: passiveScan-wait<br>    parameters:<br>      maxDuration: 180<br><br>  # -------------------------------------------<br>  # Active Scan (full attack)<br>  # -------------------------------------------<br>  - type: activeScan<br>    parameters:<br>      context: &quot;testmysite&quot;<br>      maxRuleDurationInMins: 5<br><br>  # -------------------------------------------<br>  # Report output<br>  # /zap/output is mounted from $(Pipeline.Workspace)/TestResults<br>  # -------------------------------------------<br>  - type: report<br>    parameters:<br>      template: &quot;traditional-xml&quot;<br>      reportDir: &quot;/zap/output&quot;<br>      reportFile: &quot;active-report&quot;<br><br>  # -------------------------------------------<br>  # Exit Status (Medium triggers warning)<br>  # FAIL pipeline on High (handled in YAML stage)<br>  # -------------------------------------------<br>  - type: exitStatus<br>    parameters:<br>      errorLevel: &quot;High&quot;<br>      warnLevel: &quot;Medium&quot;<br>      okExitValue: 0<br>      errorExitValue: 1<br>      warnExitValue: 2</pre><p>Once the results of the scan have been generated you can find them in the published artifacts as an <strong>active-report.xml</strong> file.</p><h3>Summary</h3><p>In summary this was the final part of a three part series where I’ve discussed DevSecOps governance and the implementation of Dynamic Application Software Testing (DAST) within build pipelines for the purpose of testing the integrity and security of newly deployed web application. I hope you find this helpful on your journey towards a shift-left mind set.</p><p><em>Originally published at </em><a href="https://techmusings.co.uk/2026/03/27/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies/"><em>https://techmusings.co.uk</em></a><em> on March 27, 2026.</em></p><p><em>If you want to learn more about the Microsoft Team here at Capgemini, take a look at our </em><a href="https://www.capgemini.com/careers/join-capgemini/job-search/?keyword=microsoft&amp;size=15"><strong><em>open roles</em></strong></a><strong><em> </em></strong><em>and consider joining the team!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=641c89d6901c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-3-implementing-dynamic-application-security-testing-dast-in-build-641c89d6901c">DevSecOps Governance (Part 3): Implementing Dynamic Application Security Testing (DAST) in Build…</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When “Shift‑Left” Leaves the Back Door Open: Why Governance Matters More Than Ever]]></title>
            <link>https://medium.com/capgemini-microsoft-team/when-shift-left-leaves-the-back-door-open-why-governance-matters-more-than-ever-44616f351379?source=rss-2c323341f9ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/44616f351379</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[azure-devops-pipeline]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Wayne Campbell]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 11:17:52 GMT</pubDate>
            <atom:updated>2026-06-30T11:37:17.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y9LzraYWmjl5oHOL" /><figcaption>Photo by <a href="https://unsplash.com/@amstram?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For years, DevOps has been the crucial link between development and operations — powering automation, continuous delivery, and secure, fast‑moving engineering. As organisations push towards full‑stack development and shift‑left practices, developers are increasingly expected to take on responsibilities that were traditionally the domain of DevOps engineers. Developers are now expected to build features, deploy them, and manage pipelines, often without deep operational or security experience.</p><p>This shift brings speed and autonomy, but also risk. Inexperienced engineers can unintentionally create security back doors in CI/CD workflows — a concern Microsoft highlights, warning that Azure DevOps pipelines can become unintentional security vulnerabilities if not properly governed (Source: <a href="https://devopsdemystified.com/devops-trends-to-watch-in-2026-preparing-for-the-next-wave/">Microsoft Learn — End-to-End Governance in Azure CI/CD</a>)</p><h4>The Quiet Casualties of Shift‑Left: The Things That Get Forgotten</h4><p>When inexperienced developers are thrust into DevOps territory certain practices are often omitted — not out of negligence, but inexperience.</p><p>Some of the first casualties include:</p><p><strong>SAST (Static Application Security Testing)</strong></p><p>Its important to build this into automated pipelines to scan code vulnerabilities — analysing structure, logic and data flow of code to find insecure patterns such as SQL, XML injection, XSS, authentication and authorization flaws e.g. hardcoded credentials, weak authentication logic, insecure APIs, poor error handling.</p><p><strong>SCA (Software Composition Analysis)</strong></p><p>Again this should be built into pipelines to scan for third-party and open-source dependencies (e.g. libraries and packages) for vulnerabilities, outdated or unpatched versions, known Common Vulnerabilities and Exposures (CVEs) or may potentially result in licensing conflicts.</p><p><strong>DAST (Dynamic Application Security Testing)</strong></p><p>Test your application from an external perspective, simulating how an attacker would interact with it through the UI, APIs, authentication flows, and runtime behaviour. Typically executed post-deployment within your pipeline.</p><p><strong>Secret Scanning</strong></p><p>Without governance, secrets can easily make their way into repositories— especially when pipelines are created by less experienced engineers.</p><p><strong>Branch Policies</strong></p><p>Prevent reviewer requirements, build validation, and status checks being skipped by enforcing them at branch level.</p><p><strong>Pre-deployment approvals</strong></p><p>Developers unfamiliar with release management may bypass environment approvals, unintentionally granting broader deployment access than intended.</p><h3>Why Governance Becomes Critical in This New Landscape</h3><p>Governance doesn’t exist to slow teams down — it exists because modern distributed teams need <strong>consistent guardrails</strong>, <strong>especially when experience levels vary</strong>.</p><p>Modern DevSecOps guidance stresses that security must be continuous, automated, and embedded early — not an afterthought. This includes integrating static analysis, continuous scanning, and policy enforcement directly into the DevOps pipeline.</p><p>Shift‑left security also requires tooling that enforces scanning, policy controls, and compliance checks throughout the SDLC.</p><p>However, it’s important to acknowledge that <strong>there is no one‑size‑fits‑all model</strong>. These tactics should be shaped around your team’s workflows, culture, and delivery practices so they enhance — rather than obstruct — how your organization operates.</p><h4>✔ Governance Gap Analysis</h4><p>First things first — get organised. Map out the topology of the repositories and branch structures, identify where the remediations should be targeted and focus your efforts whilst updating your status as you go. A simple spreadsheet similar to the below can help especially when sharing information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CdRUvA4GbmeUVMBr.png" /></figure><h4>✔ Add SAST and SCA scanning as mandatory pipeline steps</h4><p>Shift‑left security starts here. Where possible — create centralized templates with built-in SAST and SCA tasks and indirectly enforce that they are used/extended by all developers with branch policies. Pretty straight-forward with GitHub Advanced Security, a few check boxes to enable the service and then update any pipelines with a couple of build tasks where you want the build to break if there are any violations.</p><h4>✔ Add required PR reviewers on all protected branches</h4><p>This helps prevent risky merges by inexperienced developers. Ensure all comments are resolved and linked to work items to provide reviewers with proper context.</p><h4>✔ Add build validation as a required check</h4><p>A broken or insecure pipeline should not be allowed to merge without passing CI. You can enforce this by implementing a build pipeline with SAST and SCA scans. If its not a shared validation pipeline you can also run any automated tests.</p><h4>✔ Enable secret scanning in all repositories</h4><p>Detect exposed credentials before they reach production. Enable scanning at the repository level. GitHub Advanced Security has <strong>push protection</strong> to prevent secrets from being committed.</p><h4>✔ Use environment approvals for Production</h4><p>Prevent accidental (or unauthorised) deployments by enforcing pre-deployment approvals for production environments.</p><h4>✔ Convert all pipelines to YAML templates</h4><p>You can standardize everything from builds and releases using YAML based templates to ensure consistency across teams and reduce configuration drift.</p><h4>✔ Apply RBAC properly</h4><p>This is one of the highest risk areas in Azure DevOps. Poorly configured permissions can quickly lead to privilege escalation and unintended access to critical systems.</p><p>Microsoft suggests adopting RBAC style principles such as applied with Azure Resource Manager:</p><ul><li>Limit developers to deploy to dev/test environments</li><li>Only admins can approve production deployments</li><li>Control Service Connection configuration</li></ul><h3>An Implementation Story</h3><p>To support the above I&#39;ve put together a 3 part series demonstrating some of the above practices in action.</p><ul><li><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies-e4ac841315c7">Part 1: Tooling, Secret Scanning, and Branch Protection Strategies</a></li><li><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-e08916a899da">Part 2: Static Analysis Software Testing (SAST), Software Composition Analysis (SCA) and Build Pipelines</a></li><li><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-3-implementing-dynamic-application-security-testing-dast-in-build-641c89d6901c">Part 3: Implementing Dynamic Application Security Testing (DAST) in Build Pipelines</a></li></ul><h3>Summary</h3><p>As developers take on more DevOps responsibilities, the risk of misconfiguration and security vulnerabilities increases dramatically — but only if organizations fail to establish proper governance.</p><p>Shift‑left is about <strong>moving responsibility earlier — with guardrails</strong>.</p><p>By centralizing templates, enforcing branch protections, integrating automated security scanning, aligning RBAC style principles, and restricting production access, organizations can empower developers without sacrificing security.</p><p><em>If you want to learn more about the Microsoft Team here at Capgemini, take a look at our </em><a href="https://www.capgemini.com/careers/join-capgemini/job-search/?keyword=microsoft&amp;size=15"><strong><em>open roles</em></strong></a><strong><em> </em></strong><em>and consider joining the team!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44616f351379" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/when-shift-left-leaves-the-back-door-open-why-governance-matters-more-than-ever-44616f351379">When “Shift‑Left” Leaves the Back Door Open: Why Governance Matters More Than Ever</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSecOps Governance (Part 2): Static Analysis Software Testing (SAST), Software Composition…]]></title>
            <link>https://medium.com/capgemini-microsoft-team/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-e08916a899da?source=rss-2c323341f9ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/e08916a899da</guid>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Wayne Campbell]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 11:57:01 GMT</pubDate>
            <atom:updated>2026-06-30T11:38:41.697Z</atom:updated>
            <content:encoded><![CDATA[<h3>DevSecOps Governance (Part 2): Static Analysis Software Testing (SAST), Software Composition Analysis (SCA) and Build Pipelines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dds_wSsOVmYze6PW" /><figcaption>Photo by <a href="https://unsplash.com/@hansreniers?utm_source=medium&amp;utm_medium=referral">Hans Reniers</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Following on from my original blog ‘<a href="https://medium.com/capgemini-microsoft-team/when-shift-left-leaves-the-back-door-open-why-governance-matters-more-than-ever-44616f351379">When “Shift‑Left” Leaves the Back Door Open: Why Governance Matters More Than Ever</a>’ this is part 2 of a 3 part follow up series where I’ll discuss practical tools and strategies I’ve used to implement some of the security considerations outlined in the aforementioned post.</p><p>In <a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies-e4ac841315c7"><strong>part 1</strong></a>, I discussed tooling, Secret Scanning, Branch and Security policies and Pre-Deployment Approvals.</p><p>In this post I’ll be diving deeper into SAST and SCA and how you can complement the out of the box auto enabled scanning that outputs passive results when you install GitHub Advanced Security (GHAS) with integrated build pipeline scanning which will actively fail builds on discovery of issues.</p><h3>Blocking Builds with SAST and SCA scans</h3><p>Out of the box, the SAST component of GitHub Advanced Security begins scanning your code base for code quality and security issues e.g. looking for potential SQL injection, cross-site scripting (XSS), flawed logic, broken authentication.</p><p>SCA scans for third-party and open-source dependencies with Common Vulnerabilities and Exposures (CVE’s) as well as potential open-source software licensing violations.</p><p>The challenge is these findings are often passive or informational. T<strong>o proactively block insecure code being merged I introduced SAST and SCA logic into the build pipelines</strong>.</p><p>This meant that if the scans identified issues <strong>above an agreed threshold, the pipeline would explicitly fail, preventing vulnerable or non-compliant code from being merged or deployed</strong>. You could immediately see the result of any scans in the build console log or they could be outputted as a Sarif report or as build artifacts.</p><p>Below is an example of SAST and SCA scanning introduced into a pipeline for a JavaScript based solution. This was configured to run on pipeline triggers whether it be PR or direct commits (although they were switched off which I’ll get to later). I’ve added a comment by each of the scan based tasks explaining what they do.</p><pre># ============================================================<br>#                STAGE 1 — SECURITY SCANNING (ALWAYS RUN)<br># ============================================================<br>stages:<br><br>  - stage: SecurityScanning<br>    displayName: &quot;GitHub Advanced Security Scanning&quot;<br>    condition: always()<br>    jobs:<br>      - job: SecurityScan<br>        displayName: &quot;Run CodeQL and Dependency Scanning&quot;<br>        pool:<br>          vmImage: ubuntu-latest<br>        steps:<br><br>          - checkout: self<br><br>          - script: mkdir -p $(System.DefaultWorkingDirectory)/security-results<br>            displayName: &quot;Create security-results directory&quot;<br>          ## AdvancedSecurity-Codeql-Init@1 task initializes the CodeQL environment and performs dependency scanning for the specified languages. <br>          ## The results are stored in the specified output directory.<br>          - task: AdvancedSecurity-Codeql-Init@1<br>            displayName: &quot;Initialize CodeQL&quot;<br>            inputs:<br>              languages: &#39;javascript&#39;<br>              outputDirectory: &#39;$(System.DefaultWorkingDirectory)/security-results/dependency-scanning&#39;<br><br>          ## AdvancedSecurity-Dependency-Scanning@1 task analyzes the dependencies of the project and identifies any known vulnerabilities.<br>          - task: AdvancedSecurity-Dependency-Scanning@1<br>            displayName: &quot;Run Dependency Scanning (fail on high severity)&quot;<br>            inputs:<br>              failOnSeverity: &#39;error&#39;<br><br>          ## AdvancedSecurity-Codeql-Analyze@1 task runs the CodeQL analysis on the codebase to identify potential security vulnerabilities.<br>          - task: AdvancedSecurity-Codeql-Analyze@1<br>            displayName: &quot;Run CodeQL Analysis&quot;<br>            inputs:<br>              failOnAlerts: true<br>              severityLevel: &#39;error&#39;<br><br>          ## PublishBuildArtifacts@1 task publishes the security scan reports as build artifacts.<br><br>          - task: PublishBuildArtifacts@1<br>            displayName: &quot;Publish Security Scan Reports&quot;<br>            inputs:<br>              PathtoPublish: &#39;$(System.DefaultWorkingDirectory)/security-results&#39;<br>              ArtifactName: &#39;security-results&#39;<br>              publishLocation: &#39;Container&#39;</pre><h3>SAST Scanning Infrastructure as Code with Checkov</h3><p>I’ve included a separate section here for <strong>Infrastructure as code (IaC) </strong>SAST scanning because IaC security requires a slightly different approach from application code scanning. While GHAS and CodeQL are a valuable offering for application security, IaC — scanning is often better handled by dedicated tools hence it meant the introduction of third party open-source software.</p><p>After reviewing several options compatible with ADO and Bicep I decided to go with <strong>Checkov </strong>as it was it was capable of scanning not only for misconfigurations, compliance (CIS, NIST, PCI, SOC2, HIPAA) and secrets, but it also looked for network configuration issues — something which was important to us as much of our IaC was made up of network components (VNETs, NAT Gateways, NSG’s, private endpoints etc).</p><p>One of the useful features of Checkov is that by using a .checkov.yml file to centralise the Checkov definition rules you can tell it to omit certain findings that may have resulted in false positives e.g. for things like Blob storage you may need to have public access so you don’t want this flagged and breaking the build. This is a practice commonly seen in enterprise scenarios so they can keep pipeline logic clean and centralise rules.</p><p>Instead of a .checkov.yml file there is also an option to run the scans using Bridgecrew/Prisma clouds Azure policy catalog. This catalog is constantly kept upto date but it does require additional setup including creating an account with Prisma and generating an api key. Given that during the build process Checkov updates its internal Azure Checkov ID list I couldn’t really see the advantage of this so stuck with the .checkov.yaml definition file.</p><p>Below is an example of a Checkov implementation designed to break the build when high or critical findings are discovered.</p><pre># ============================================================<br>#         SECURITY SCANNING STAGE (ALWAYS RUN)<br># ============================================================<br><br>stages:<br>- stage: SecurityScanning<br>  displayName: &quot;Security Scanning (IaC + Dependencies)&quot;<br>  condition: always()        # &lt;---- ALWAYS runs even on PRs<br>  jobs:<br>    - job: SecurityScan<br>      displayName: &quot;Run Checkov IaC Scan + GHAS Dependency Scan&quot;<br>      pool:<br>        vmImage: ubuntu-latest<br>      steps:<br>        - checkout: self<br><br>        # 1) Compile Bicep → ARM - required for Checkov to scan the infrastructure as code templates effectively. This step ensures that all Bicep files are converted to ARM JSON, which Checkov can analyse for security issues. By automating this compilation in the pipeline, we ensure that the latest changes in Bicep files are always included in the security scan without manual intervention.<br>        - script: |<br>            echo &quot;Compiling Bicep files to ARM JSON...&quot;<br>            find . -name &quot;*.bicep&quot; -exec sh -c &#39;<br>              for file in &quot;$@&quot;; do<br>                echo &quot;Building $file&quot;<br>                az bicep build --file &quot;$file&quot;<br>              done<br>            &#39; sh {} +<br>          displayName: &quot;Compile Bicep to ARM&quot;<br><br>        # 2) Install Checkov - always updates the Azure Checkov rule definitions to the latest version on the build agent, ensuring we catch the newest checks without manual maintenance of rule versions.<br>        - script: |<br>            pip install checkov<br>          displayName: &quot;Install Checkov&quot;<br><br>        # 3) Run Checkov - make sure you have a .checkov.yml file in the repo root with your desired configuration (frameworks, skips, etc.). This keeps the pipeline YAML clean and focused on execution.<br>        - script: |<br>            set -e<br>            mkdir -p security-results<br>            <br>            checkov -d . \<br>              -o sarif \<br>              --output-file-path security-results/checkov-results.sarif<br>          displayName: &quot;Checkov IaC Scan&quot;<br><br>        # 4) GHAS Dependency Scan - nothing to do with Checkov<br>        - task: AdvancedSecurity-Dependency-Scanning@1<br>          displayName: &quot;GHAS Dependency Scanning (Fail on High Severity)&quot;<br>          condition: succeeded()<br>          inputs:<br>            failOnSeverity: &#39;error&#39;<br><br>        # Publish to CodeAnalysisLogs artifact (required for outputting sarif results to the *Scans* tab)<br>        - task: PublishBuildArtifacts@1<br>          inputs:<br>            PathtoPublish: &#39;security-results/checkov-results.sarif&#39;<br>            ArtifactName: &#39;CodeAnalysisLogs&#39;</pre><p>An example <strong>.checkov.yml</strong> definition file. In here you tell the Checkov runner what Azure Checkov Id’s to ignore, what frameworks to ignore, any file paths to skip scanning and also to soft fail (i.e. don’t break the build) on any low to medium findings. when you create the .checkov.yml file place it at the directory root and the build pipeline will find it.</p><pre># ============================================================<br># Checkov Enterprise Configuration for Azure (Bicep + ARM)<br># Purpose: Centralized, low-maintenance, future-proof policy<br># ============================================================<br><br># ---- Framework Selection -----------------------------------<br># Scan ONLY Azure IaC formats: ARM JSON + Bicep<br>framework:<br>  - arm<br>  - bicep<br><br># ---- Severity Enforcement ----------------------------------<br># Fail the pipeline only for HIGH and CRITICAL findings. THIS DOES NOT work in version 3 and beyond of Checkov so commented it out and left it here because its a bit of a gotcha!<br># (Checkov’s built-in severity system)<br># severity:<br>#   - CRITICAL<br><br># ---- Path Filters -------------------------------------------<br># Skip irrelevant folders that generate noise or irrelevant matches.<br>skip-path:<br>  - .git<br>  - .github<br>  - .azuredevops<br>  - node_modules<br>  - pipelines<br>  - dist<br>  - out<br><br># ---- Skip Specific Checks (Optional) -------------------------<br># Only include checks here when needed (false positives,<br># unsupported features, intentional design choices).<br># This list should remain short and curated.<br>skip-check:<br>  # Example skips—replace or remove as needed:<br>  - CKV_AZURE_206   # Storage replication not required<br>  - CKV_AZURE_43    # : : Ensure Storage Accounts adhere to the naming rules<br><br># ---- Output Configuration -----------------------------------<br># Let the CLI output remain minimal (CI/CD will handle artifacts).<br>output:<br>  - cli<br><br># ---- Policy Directory for Custom Enterprise Rules -----------<br># (Optional) Allows org-specific policy-as-code additions.<br># Uncomment if you have custom YAML/Python rules.<br># external-checks-dir:<br>#   - .checkov/policies<br><br># ---- Variable Rendering -------------------------------------<br># Helps with Bicep/ARM parameterisation cases.<br>evaluate-variables: true<br><br># ---- Soft Fail for Non-Critical Findings --------------------<br># Lower severity issues will not fail the pipeline.<br>soft-fail: true</pre><h3>Summary</h3><p>In summary I’ve discussed DevSecOps governance and the implementation of Github Advanced Security, SAST and SCA scanning within build pipelines for the purpose of forcing build failures when discrepancies are discovered. I also discussed SAST in the context of application code and Infra as Code pipelines. I hope you find this helpful on your journey towards a shift-left mind set and in my next post I’ll talk about techniques to actively block builds through <a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-3-implementing-dynamic-application-security-testing-dast-in-build-641c89d6901c"><strong>Dynamic Analysis Software testing (DAST)</strong></a> scan findings.</p><p><em>Originally published at </em><a href="https://techmusings.co.uk/2026/03/27/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-analysis-sca-and-build-pipelines/"><em>https://techmusings.co.uk</em></a><em> on March 27, 2026.</em></p><p><em>If you want to learn more about the Microsoft Team here at Capgemini, take a look at our </em><a href="https://www.capgemini.com/careers/join-capgemini/job-search/?keyword=microsoft&amp;size=15"><strong><em>open roles</em></strong></a><strong><em> </em></strong><em>and consider joining the team!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e08916a899da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-e08916a899da">DevSecOps Governance (Part 2): Static Analysis Software Testing (SAST), Software Composition…</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSecOps Governance (Part 1): Tooling, Secret Scanning, and Branch Protection Strategies]]></title>
            <link>https://medium.com/capgemini-microsoft-team/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies-e4ac841315c7?source=rss-2c323341f9ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ac841315c7</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[governance]]></category>
            <dc:creator><![CDATA[Wayne Campbell]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 11:15:41 GMT</pubDate>
            <atom:updated>2026-06-30T11:38:08.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*myQU7BRzqj0lC6xE" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=medium&amp;utm_medium=referral">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Following on from my original blog ‘<a href="https://medium.com/capgemini-microsoft-team/when-shift-left-leaves-the-back-door-open-why-governance-matters-more-than-ever-44616f351379">When “Shift‑Left” Leaves the Back Door Open: Why Governance Matters More Than Ever</a>’ this is part 1 of a 3 part follow up series where I’ll discuss examples of tools and strategies I’ve used to implement some of the security considerations I outlined in the aforementioned post.</p><p>In this post I’ll be discussing the below aspects;</p><ul><li>Tooling</li><li>Scanning Secrets</li><li>Branch Policies</li><li>Security Policies</li></ul><h3>App Security Platform tooling</h3><p>There are many tools of choice for enforcing DevSecOps governance in Azure Dev-Ops (ADO). In this example I’m going to discuss <a href="https://learn.microsoft.com/en-us/azure/devops/repos/security/configure-github-advanced-security-features?view=azure-devops&amp;tabs=yaml&amp;pivots=standalone-ghazdo"><strong>GitHub Advanced Security</strong></a> (GHAS) as it covers the majority of the security requirements including Secret Scanning, SAST, and SCA and is straightforward to implement.</p><p>As is the case with all these tools it does come at a cost (<a href="https://learn.microsoft.com/en-us/azure/devops/repos/security/github-advanced-security-billing?view=azure-devops&amp;utm_source=copilot.com&amp;pivots=standalone-ghazdo"><strong>GitHub Advanced Security Pricing</strong></a>) and although it’s not the cheapest of the major players its <em>one </em>of the cheapest and the fact its natively built into ADO is a big tick. By the click of a button you can enable it (make sure you have at least <strong>Project Admin</strong> permissions) — at which point it can start protecting your environment by scanning for old secrets and blocking new secrets and SAST and SCA scanning provide informational feedback on any discrepancies found in default or protected branches (<strong>I discuss SAST and SCA in more detail in part 2 blog</strong>).</p><p>To enable GitHub Advanced Security: Project &gt; Repositories &gt; Select Repo &gt; Settings. Toggle the features you want turned on or off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-VP5bz8iaRDPppmZ.png" /></figure><h3>Secret Scanning</h3><p>Once enabled, GHAS gets to work on scanning your code base for exposed secrets. During initial enablement it performs a scan for any historical secrets and surfaces any findings in the <strong>Advanced Secrets</strong> view for the repositories.</p><p>From here you can review the detected secrets and decide whether to accept the risk or remediate them using various git commands — but this does require a history rewrite so take this into consideration when planning your branch policies (covered later in this post)</p><p>Repos &gt; Advanced Security &gt; Change your Repo to view any secrets captured</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hU7-x8JqehhsSzhZ.png" /></figure><p>Going forward GHAS can also block new secrets from being pushed preventing them from entering the repository. Developers are either required to justify the secret or remove it before attempting to commit again.</p><h3>Branch Policies and Security Policies</h3><p>Why is it important to protect your default and permanent branches? Without proper branch protection you open the door to introducing poor quality code into your precious branches.</p><p>Branch policies can enforce controls such as:</p><ul><li>Minimum number of PR reviewers</li><li>Required PR reviewers</li><li>Merge type controls</li><li>Pre Merge Build validations</li><li>Force work items to be linked to commits</li></ul><p>They are straightforward to implement: Repos &gt; branches, click on the ellipsis and select <strong>branch policies</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b-JN3lGGcTrhlmJm.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*4xqGQAxKgILz5-JQ.png" /></figure><p>You can also find the <strong>Security policies</strong> in the same place on the <strong>Security </strong>tab. There are a number of options in here designed to protect your branches.</p><p>These permissions can be set to groups and or individual users at the project or repo level but you can override this inheritance by setting the inheritance radio button to <strong>off</strong>.</p><p>The right settings will depend on your delivery model, risk appetite, regulatory context and team structure. Here’s how I personally have used some of the options:</p><ul><li><strong>Bypass policies when completing pull requests</strong>: this allows the group/user to complete a PR even if the PR merge checks violate branch policies.</li><li><strong>Bypass policies when pushing</strong>: Enables the group/user to commit directly to the branch despite the branch having branch policies set.</li><li><strong>Contribute</strong>: If enabled the group/user can push changes to the branch — if disabled, they cant push anything to it. Ive only ever disabled this for non developer groups/users</li><li><strong>Edit policies</strong>: Allows the group/user to edit branch policies. I enable for Project Admins only.</li><li><strong>Force push (rewrite history, delete branches)</strong>. The group/user can rewrite commit history. <strong>They can also delete branches altogether</strong>. I usually set this to DENY for all members, however temporarily enable if required e.g. if the secret scanner reveals historical secrets committed that need removing.</li><li><strong>Manage permissions</strong>: The group/user can control branch permissions such as who can push or bypass policies, who can force push. I enable for Project Admins only.</li></ul><p>Its also worth pointing out you can set each of the above options to 1 of 3 states;</p><ul><li><strong>Allow</strong>: the group/user can do the thing</li><li><strong>Deny</strong>: The group/user cant do the thing</li><li><strong>Not Set</strong>: Neither allowed or denied doing the thing — but they will inherit what is set further up the hierarchy i.e. repo or project level</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/0*YoCQq7Ml3CIl-eH-.png" /></figure><h3>Pre-deployment Approvals</h3><p>How do we prevent bad code being deployed to our environments accidentally or otherwise? This is where <strong>Pre-deployment Approvals</strong> come in.</p><p>They allow us to appoint required users to ‘sign-off’ the deployment of code to any given environment. Unless the approver approves the deployment, the code cannot be deployed. I usually reserve this type of intervention for UAT deployment stages and upwards.</p><p>They are pretty easy to implement in Release pipelines; Click on the little person icon on the stage (environment) you want to implement the pre-deployment approvals for, select your approver(s) from the drop down list, and set an expiration date by which they must be approved. Then on the next attempt to perform a deployment the approver will receive a notification that the need to review/approve a deployment.</p><p>Project &gt; Pipelines &gt; Release &gt; Select your release stage and click Edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*kL4ggXVJGZ1CYcL_.png" /></figure><p>Now you select your approvers and save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/0*3kXQfnvZgaOH2GKW.png" /></figure><p>For yaml deployment pipelines there is more configuration required. You’ll need to select create an <strong>Environment </strong>for the stage you want to add the pre-deployment approvals to and then add your approvers within the environment. You’ll then need to bind this environment to the deployment stage in your pipeline as part of your yaml definition.</p><p>Creating a new Environment: Project &gt; Pipelines &gt; Environments&gt; Create New Environment &gt; Give it a name and leave other defaults.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/0*VaP2-ohHkq4YefX3.png" /></figure><p>Now Click on your new Environment, Approvals and Checks &gt; Approvals then add approvers from the list and click create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*abxjB8UYnITbLUS6.png" /></figure><p>Now update your yaml pipeline and associate with the Environment/Approval Checks. When this pipeline is triggered the deployment will be blocked until the approver approves it.</p><p>Some dummy yaml code to illustrate binding your Environment to your yaml deployment</p><pre>- stage: DeployProd<br>    displayName: &quot;Deploy to Prod&quot;<br>    dependsOn: Another_Stage<br>    condition: eq(variables[&#39;Build.SourceBranch&#39;], &#39;refs/heads/prod&#39;)<br><br>    jobs:<br>      - deployment: DeployProd<br>        environment: TestEnv //this should match the name of your new Environment to associate it<br>        strategy:<br>          runOnce:<br>            deploy:<br>              steps:<br>                - task: DummyDeploymentTask@0<br>                  displayName: Push to Prod</pre><h3>Summary</h3><p>In summary I’ve discussed DevSecOps governance tooling in the shape of GitHub Advanced Security and how out of the box it scans for historical secrets provisioning a GUI to enable developers to remediate any findings. Going forward secrets will also be blocked on push (if enabled). SAST and SCA scanning also provides informational results on code quality and Open Source Software violations. Branch and Security policies can also be implemented to prevent poor code from being merged into permanent branches, rewriting commit history or deleting branches altogether. Pre-deployment Approvals can also be employed to block code from being deployed to your environments without oversight. I hope you find this helpful on your journey towards a shift-left mind set and in my next post I’ll talk about techniques to <a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-2-static-analysis-software-testing-sast-software-composition-e08916a899da"><strong>actively block builds through SAST and SCA scan findings</strong></a>.</p><p><em>Originally published at </em><a href="https://techmusings.co.uk/2026/03/27/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies/"><em>https://techmusings.co.uk</em></a><em> on March 27, 2026.</em></p><p><em>If you want to learn more about the Microsoft Team here at Capgemini, take a look at our </em><a href="https://www.capgemini.com/careers/join-capgemini/job-search/?keyword=microsoft&amp;size=15"><strong><em>open roles</em></strong></a><strong><em> </em></strong><em>and consider joining the team!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ac841315c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/devsecops-governance-part-1-tooling-secret-scanning-and-branch-protection-strategies-e4ac841315c7">DevSecOps Governance (Part 1): Tooling, Secret Scanning, and Branch Protection Strategies</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>