Skip to content
stateless.co · Engineering notes from the request/response layer
statelessThe engineering desk

A publication about the machinery under everyday software: the contracts between services, the queries behind a page, and the failures that only show up in production.

—Archive

NCSC Principles Steer SLSA-Hardened CI/CD

02 December 2026

UK guidance now points software teams toward layered supply-chain control. The NCSC’s supply-chain guidance sets out 12 principles for oversight of suppliers. The UK government’s Software Security Code of Practice adds 14 principles for vendors. The SLSA specification defines how builds are hardened and how their provenance is verified. The NCSC's case for all of this is that attacks on software are proliferating.

How the NCSC Structures Supply-Chain Control

The NCSC designed its 12 principles to help organisations establish effective control and oversight of their supply chain. It groups them into four stages:

  • Understand the risks
  • Establish control
  • Check your arrangements
  • Continuous improvement

For a software team, these stages map onto concrete work: identifying which suppliers and components the product depends on, setting the controls they must meet, auditing whether those controls hold, and revisiting the arrangements over time.

What the Code of Practice Requires of Vendors

The Code of Practice splits its 14 principles across four themes: secure design and development, build environment security, secure deployment and maintenance, and communication with customers. Its assurance approach follows the NCSC’s Principles Based Assurance approach.

Several principles translate directly into engineering tasks. Vendors should follow an established secure development framework and have a clear process for testing software and software updates before distribution. They should protect the build environment against unauthorised access, which in practice means restricting who can change pipeline configuration, runners and secrets. They should also tell customers what level of support and maintenance comes with the software they sell.

How SLSA Makes Build Output Verifiable

SLSA (Supply chain Levels for Software Artifacts) is a specification, established by industry consensus, for describing and incrementally improving supply chain security. Version 1.2 defines SLSA levels and tracks and recommends attestation formats, including provenance. Its build track covers producing artifacts, distributing provenance, verifying artifacts and assessing build platforms.

On the consuming side, SLSA’s verification guidance says checks should confirm the builder identity, validate the signature on the provenance envelope, and ensure that the buildType and externalParameters fields match expected values. An artifact that fails any of these checks should not move further down the pipeline.

Managing Dependency and Third-Party Risk

The NCSC warns that third-party components can introduce additional risks that must be identified and managed, and that supply chain security should ensure those components are not compromised before they enter the build. Its technology assurance guidance recommends keeping an accurate inventory of all third-party goods, services and suppliers in use, and applying updates to original vendor-supplied components and development tools as quickly as possible.

Automated scoring can support this work. The OpenSSF Scorecard assesses open source projects through 18 automated checks across three themes: holistic security practices, source code risk assessment and build process risk assessment. Together they cover source code, build, dependencies, testing and project maintenance. A score is an input to supplier governance and due diligence, not a replacement for them.

Questions to Put to Software Vendors

The NCSC advises buyers to establish how long third-party supplied goods will be supported, what the supplier’s normal update cycle is, and how often it checks for publicly known vulnerabilities. The answers indicate whether a vendor can meet the Code of Practice’s expectations on maintenance and customer communication.

Few organisations ask. The UK government’s Cyber Breaches Survey 2024 found that only 11% of organisations take the necessary steps to review cyber risks from their direct suppliers, and just 6% do so for wider suppliers.

Building the Controls Into CI/CD

In a pipeline, the guidance becomes a set of enforceable gates: mandatory testing before any release or update ships, locked-down access to the build environment, signed SLSA provenance generated for every artifact, and automated dependency and maintenance checks such as Scorecard. Wherever an artifact is consumed, whether at deployment or when it is pulled into another build, verify its provenance against the expected builder, signature, buildType and externalParameters before accepting it.