TL;DR: GitHub Advanced Security combines code scanning, secret scanning and dependency review with DAST to catch application flaws earlier in the delivery cycle, according to StackHawk. The governance challenge is not visibility alone, but proving that static and runtime controls jointly reduce exploitable risk before code reaches production.
At a glance
What this is: StackHawk says GitHub Advanced Security catches application flaws earlier in the delivery cycle, and DAST adds runtime testing for issues static analysis can miss.
Why it matters: AppSec teams need both pre-commit and runtime coverage to govern secrets, vulnerabilities and exploitable behaviour before code reaches production.
Context
CI/CD security fails when teams rely on only one view of risk. Static analysis can spot code patterns, but it cannot fully prove how an application behaves when it is running, authenticated, or connected to live services. That gap matters in appsec because exploitable flaws often emerge at the point where code, configuration and runtime state intersect.
GitHub Advanced Security addresses the left side of that gap by surfacing code scanning, secret scanning and dependency review inside the development workflow. DAST addresses the runtime side by exercising the application as an attacker or user would. For practitioners, the governance problem is not whether either control is useful, but whether both are wired into the delivery process tightly enough to reduce release-time risk rather than simply increase alert volume.
Key questions
Q: What breaks when code scanning is the only AppSec control in CI/CD?
A: Static analysis can reveal risky patterns in source code, but it cannot fully prove whether a deployed application is exploitable under real authentication, session, or configuration conditions. That means teams can ship code that looks clean in review but still fails at runtime, especially where behaviour depends on state outside the codebase.
Q: Why do leaked CI/CD credentials create such a high-risk path to production compromise?
A: Leaked pipeline credentials often have enough privilege to reach cloud resources, deployment tooling, and production data paths. That makes them an efficient pivot point for attackers, especially when secrets are reused or left valid after exposure. The risk is amplified by the gap between disclosure and revocation, which gives attackers time to test access, modify builds, and deploy malicious changes.
Q: How do you know if DAST is actually improving release security?
A: DAST is working when it finds exploitable runtime issues that static analysis cannot confirm, and when those findings change release decisions rather than only creating more tickets. Look for fewer runtime surprises in production, faster remediation of live-path flaws, and evidence that authentication and authorisation checks are being exercised before deployment.
Q: How should AppSec teams govern secrets, code scanning and DAST together?
A: Treat them as complementary controls in one release gate. Code scanning and secret scanning reduce the chance that obvious defects and credentials enter the branch, while DAST checks whether the running service is still vulnerable. The goal is one decision point that balances code risk, credential risk, and exploitability.
Technical breakdown
How code scanning changes vulnerability detection in CI/CD
Code scanning analyzes source code and asks whether data flows, query patterns or control paths can produce a known weakness. In practice, tools such as CodeQL look for issue classes like injection, insecure data handling and risky dependency usage before a build ships. That makes the control strongest where the flaw is visible in code structure. It is weaker where the problem depends on runtime state, external systems or authentication context that static analysis cannot model completely.
Practical implication: treat code scanning as an early filter, not proof that the application is safe.
Why secret scanning matters for CI/CD governance
Secret scanning looks for credentials, tokens and keys that developers may accidentally commit into repositories, pull requests or build artefacts. That matters because exposed secrets become immediate access paths, not just policy violations. In GitHub-centric workflows, the risk is amplified when automation moves quickly and humans review only a subset of changes. Secret scanning therefore acts as a control over credential leakage at the point of introduction, which is where many downstream incidents begin.
Practical implication: make secret detection and revocation part of the same workflow, because finding a leaked secret without disabling it leaves the exposure window open.
What DAST adds that static analysis cannot
DAST tests a running application from the outside, so it can observe authentication, authorisation, server configuration and dynamic behaviour in a live environment. That matters because some flaws do not become exploitable until sessions exist, controls are miswired or runtime responses reveal unintended paths. DAST is therefore complementary to static testing: one inspects code structure, the other validates whether the deployed service actually resists attack. In appsec programmes, that combination reduces the chance that a code-level green light hides a runtime weakness.
Practical implication: use DAST to validate the behaviour of released builds, especially where identity, session and API controls determine exploitability.
Threat narrative
Attacker objective: The objective is to turn development or runtime weaknesses into practical access to data, sessions or application behaviour.
- Entry begins when vulnerable code, exposed secrets or risky dependencies enter the delivery pipeline and are promoted toward production.
- Credential access or abuse occurs when leaked secrets, weak authentication paths or misconfigured controls give an attacker usable access.
- Impact follows when runtime flaws, such as injection or broken authorisation, are exploitable in the live application and can lead to data theft or service abuse.
Breaches seen in the wild
- Firebase misconfiguration exposure 2024: Missing Firebase security rules on 916 websites exposed 125 million user records and 19.87 million plaintext passwords; a quarter were fixed.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
CI/CD security now lives or dies on whether code-time and runtime controls are joined. Code scanning, secret scanning and dependency review reduce the chance that obvious flaws travel downstream, but they do not verify deployed behaviour. DAST closes that governance gap by testing what the application actually does once it is live. For AppSec teams, the real question is whether the pipeline can prove exploitability is shrinking, not merely whether more findings are being generated.
Runtime validation is the control boundary that static analysis cannot cross. Static checks are strongest at finding patterns in code, while DAST is strongest at discovering issues that emerge only with authentication, session state or live configuration. That means release governance should treat DAST as evidence about real exploitability, not as a duplicate scan. The programme implication is simple: if the control cannot observe deployed behaviour, it cannot fully answer whether a flaw is reachable.
Secret leakage remains the most immediate identity risk inside developer workflows. A leaked API key or token is not a theoretical weakness, it is a ready-made non-human identity path into systems, build tools or cloud services. That makes secret scanning part of identity governance as much as application security. The named concept here is delivery-path credential exposure: credentials introduced during development can become production access before anyone notices. Practitioners should treat leaked secrets as active identities, not stray text.
The category is moving toward evidence-based AppSec, not tool stacking. The article points to a broader shift in which teams need static and dynamic assurance that lines up with CI/CD velocity. That does not replace secure coding or review discipline, but it does raise the bar for proving that controls work together. For programmes that own both application security and identity governance, the key lesson is to align code, secrets and runtime validation into one release decision.
Identity boundaries matter even in application security discussions. Once a CI/CD workflow can expose secrets, the issue stops being only about code quality and becomes about who or what can authenticate downstream. That is where application security and NHI governance intersect. Teams should review whether build pipelines, service accounts and deployment tokens are inventoried, rotated and revoked with the same discipline they apply to human access.
From our research library:
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap, according to the State of Secrets in AppSec.
- Read next: CI/CD Pipeline Identity Security Guide
What this signals
Delivery-path credential exposure: build and repository workflows can turn a single leaked secret into a live access path before the issue is detected. That makes secret scanning a governance control over non-human identity risk, not just a developer convenience. The control objective is to shorten the time between exposure and revocation, because every extra minute extends the blast radius.
Static analysis and DAST answer different questions, so mature AppSec programmes should stop treating them as substitutes. One asks whether code contains risky patterns, the other asks whether the running service can actually be exploited. The governance challenge is to make both part of the release evidence pack, so deployment decisions reflect exploitability instead of scan completion alone.
For practitioners
- Enable code scanning on every pull request Run code scanning as part of merge checks so new code is assessed before it reaches protected branches. Tune severity thresholds so teams can separate blocking issues from lower-priority findings.
- Put secret scanning on the critical path Detect API keys, tokens and other secrets as soon as they appear in repositories or workflow files, then trigger revocation or rotation immediately. The goal is to remove usable credentials, not just record the leak.
- Add DAST to release validation Exercise running applications in CI/CD so authentication, authorisation and configuration issues are tested in the same environment where they would be exploited.
- Review exposed secrets as identity events Treat a leaked token as a non-human identity incident, because the operational risk is unauthorised access rather than simply bad hygiene. Feed that event into your access governance and incident response process.
- Use combined findings for go or no-go decisions Make the release gate depend on both code-level findings and runtime evidence so teams can see whether exploitable risk is genuinely falling before deployment.
Key takeaways
- GitHub Advanced Security helps move vulnerability detection earlier in CI/CD, but static findings do not prove that deployed behaviour is safe.
- DAST fills the runtime gap by testing authentication, authorisation and configuration in a live application, where exploitability becomes visible.
- Secret scanning is an identity control as well as an AppSec control, because leaked credentials can become immediate non-human access paths.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API8 — Security Misconfiguration | Runtime testing in this article targets configuration and authentication weaknesses in deployed apps. |
| Recommendation — Use API8 to validate deployed endpoints and block misconfigurations before release. | ||
| OWASP ASVS | V6 — Authentication | The article highlights runtime testing of authentication and session behaviour in live applications. |
| V8 — Authorization | Code and DAST coverage here is materially about whether access decisions hold in production. | |
| Recommendation — Apply V6 to verify authentication behaviour in release pipelines and test it with DAST. Use V8 checks to confirm authorisation decisions still hold after deployment. | ||
| CIS Controls v8 | CIS-5 — Account Management | Secret scanning and workflow credentials touch account and credential lifecycle controls. |
| Recommendation — Strengthen CIS-5 by reviewing pipeline and service account lifecycles for exposed credentials. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article links CI/CD security to who and what can authenticate and access systems. |
| Recommendation — Map pipeline and application access to PR.AA-05 and remove unnecessary entitlements. | ||
Key terms
- Dynamic Application Security Testing: Dynamic Application Security Testing evaluates a running application from the outside to identify weaknesses that only appear under real execution conditions. It is useful for validating authentication, session handling, and API behaviour, especially where configuration and integrations change how the system actually responds to attack.
- Secrets Scanning: Automated tooling that scans source code repositories, CI/CD pipelines, and cloud environments to detect exposed secrets such as API keys, tokens, and passwords before they are exploited.
- Code Scanning: Code scanning is automated static analysis that inspects source code for security flaws before software is deployed. It looks for known vulnerability patterns, risky data flows and insecure coding constructs so teams can fix issues early in the development lifecycle.
- Delivery-Path Credential Exposure: Delivery-path credential exposure is the risk that a secret introduced in code, build scripts or workflow files becomes a live access path before anyone notices. The term captures the intersection of application security and NHI governance, where a leaked token behaves like an identity with immediate operational reach.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, IAM and secrets management in a way that helps security and identity practitioners align controls across delivery pipelines. It is designed for teams that need to connect access governance, credential handling and operational security decisions.
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org