Building software means turning written instructions into a program people can install and use.
This guide is for anyone who uses apps but has never seen how they are made. You do not need to write code. If your business buys or commissions software, the way it is built affects how safe it is.
In short
- People write software as plain text instructions called source code.
- A tool called a compiler can turn that text into a program a computer can run.
- Most programs also use ready-made parts written by others, called libraries.
- An automated build line often holds keys and tokens, so it needs the same care as a person with admin rights.
What you will learn
- Explain the path from source code to a released app.
- Describe what compiling and libraries are, in plain words.
- Spot where secrets sit in the build process.
- Ask a supplier three useful questions about how they build.
- Written instructions (source code)
- the text a person writes to tell a computer what to do.
- Ready-made parts (libraries)
- code written by someone else that a program reuses.
- Automatic build line (build pipeline)
- the steps that turn code into a finished program without a person doing each one.
What is building software?
Think of a bakery. A baker follows a recipe, adds some shop-bought ingredients and bakes a loaf. The loaf is then wrapped and sent out to shops.
Software is made in a similar way. The recipe is the source code (the instructions a developer writes as text). The shop-bought ingredients are libraries (ready-made code from other people). Baking is compiling, which means turning the code into a form a computer can run [1]. Wrapping and sending out is the release.
Not every language needs the baking step. Some, such as Python, are run by a helper program called an interpreter, so no compiling is needed [2].
Where the comparison stops working: a loaf goes stale, so you bake a new one each day. A program can be copied millions of times, so one bad ingredient or one tampered oven can reach every customer at once.
Why does it matter?
Many security problems start in the build, not in the finished app. Knowing the steps helps you ask better questions.
If you buy software for a business
What could happen: a supplier ships an update built from a part that was tampered with.
Check this: ask whether the supplier can list the parts inside their product.
If you manage a small software team
What could happen: a key stored in the build system is copied and used to publish a fake release.
Check this: list every key and token your build system holds, and who owns each one.
If you are new to IT work
What could happen: you treat the build server as "just a tool" and give it more access than it needs.
Check this: remember the build line is a non-human identity with its own access.
What does it look like?
Here is a made-up build log for a small shop app. It shows the stages a build line runs through.
Example only. All values are made up.
build log: EXAMPLE-shop-app v0.0.0 step 1 fetch source code from repository (1) step 2 download libraries: FAKE-lib-a, FAKE-lib-b (2) step 3 compile and run tests: passed (3) step 4 sign package with key EXAMPLE-SIGN-0000 (4) step 5 publish to example.invalid with token FAKE-0000 (5)
- The build starts from the code in the shared code store.
- Ready-made parts are pulled in from outside.
- The code is turned into a program and checked.
- In a real file, this line would contain only the name of the signing key, not its value.
- In a real file, this line would contain a masked token, shown as stars.
Why this is risky: anyone who can read this log can copy the publishing token and the signing key value.
The safer way: keep keys in a locked store, let the build line fetch them only when needed, and hide them from logs.
How does it work?
- Write. Developers write source code and save it in a shared store called a repository, which keeps a history of changes.
- Add parts. The code lists the libraries it needs. A list of all the parts is called a software bill of materials, which one US agency describes as "a list of ingredients" [3].
- Build and test. In a practice called continuous integration, the code is built and tested after each saved change. This catches errors early [4].
- Package and sign. The program is wrapped up so it can be installed. Many teams add a digital signature so users can check it came from them.
- Release. The package is published to an app store, a website or a company's own servers.

Steps 3 to 5 are usually run by an automatic build line, not a person. To do its job it needs secrets: keys and tokens that let it fetch code, sign packages and publish. One security guide notes that these build tools "frequently store secrets" [5]. That makes the build line a non-human identity (software that has its own access and credentials).
A US government framework for building software safely sets out practices meant to reduce the number of weaknesses in released software [6]. One simple idea runs through it: protect each step, not just the final app.
A worked example
Odile Hollis runs a small online flower shop. She pays a local developer to build and update her ordering app. One morning she reads a news story about a software build that was tampered with.
In 2021, a company called Codecov reported that someone had changed one of its build scripts. The changed script could send information from customers' build systems to an outside server [7]. Odile wonders whether her own app could be affected by something similar.
She books a short call with her developer and asks three questions. First, where is the code kept, and who can change it? The developer explains it sits in a private repository and only two people can save changes.
Second, which ready-made parts does the app use? The developer can produce a list. Odile asks for a copy each time a new version is released.
Third, what keys does the build line hold? This one takes longer. The developer finds an old publishing token that never expires and has full access. It was set up years ago and nobody owns it.
Together they agree a plan. The developer replaces the old token with a new one that can only publish this one app. The token is stored in the build service's locked secrets area, not in a file. The developer also gives it a named owner and a review date.
Odile does not need to understand compiling. By asking where code, parts and keys live, she found the one weak point that mattered most.
Myths and mistakes
| What people think | What is true |
|---|---|
| Only the finished app needs protecting. | The build line can change what every user receives. It needs protecting too. |
| Libraries from big public sites are always safe. | Ready-made parts can have flaws or be tampered with. Teams should know which ones they use. |
| A build server is just a tool, not an identity. | It connects to other systems with keys and tokens, so it is a non-human identity with access to manage. |
| Hiding a key in a build log is enough. | Log hiding can miss changed versions of a key. Give each key the least access it needs as well [8]. |
What can I do this week?
- Ask your software supplier where the source code is stored and who can change it.
- Ask for a list of the ready-made parts in your main app.
- Ask which keys and tokens the build line holds, and who owns each one.
- Check that publishing and signing keys are kept in a locked secrets store, not in files.
Checklist
- We know where our app's source code is kept.
- Only named people can change the main code.
- We can get a list of the libraries our app uses.
- Every build key and token has a named owner.
- Build tokens have only the access they need.
- Secrets are stored in a locked store and hidden from logs.
- We review old build tokens at least once a year.
Common questions
Do I need to learn to code to understand this?
No. You only need the main steps: write, add parts, build and test, package, release. With those, you can ask a supplier where code, parts and keys are kept. That covers many risks a business owner can act on.
What is the difference between source code and an app?
Source code is the text a developer writes. The app is what you install and run. For many languages, a compiler turns the text into a program the computer can run. Other languages are run straight from the text by an interpreter.
Why would a build line have keys at all?
It needs them to do its job. It fetches code from a store, downloads parts, signs packages and publishes releases. Each of those steps usually needs a key or token, which is why the build line counts as a non-human identity.
What is a software bill of materials?
It is a list of the parts that make up a piece of software, like an ingredients list on food. It helps you find out quickly whether a product uses a part that has just been found to have a flaw.
Is open source software less safe?
Not by itself. Open source means the code is public. It can be well looked after or poorly looked after, like any other code. What matters is knowing which parts you use and keeping them up to date.
Where next?
Ready for the detail? Read the practitioner guide: Software Supply Chain Security Guide. It goes further into build integrity, signing, parts lists and how teams check what goes into a release.
Also useful:
- Software Supply Chain Security for Beginners
- Open Source Risk and Software Composition Analysis for Beginners
- GitHub Actions Security for Beginners
- The Codecov Breach for Beginners
Related NHI Mgmt Group resources: Non-Human Identities for Beginners, CI/CD Security Guide and Codecov Breach 2021 [7].
Key terms
- Source code
- The text instructions a developer writes to tell a computer what to do.
- Software library
- Reusable code written by others that a program calls to do common jobs.
- Compiler
- A program that turns source code into a form a computer can run.
- Build pipeline
- The set of automatic steps that builds, tests, signs and packages software, often holding valuable secrets.
- CI/CD
- A way of working that automates testing and releasing code changes.
- SBOM
- A software bill of materials: a list of the parts used to build an app.
- Non-human identity (NHI)
- An identity used by software, such as a build line or service, so it can connect to other systems without a person.
Sources and further reading
- MDN Web Docs, "Compile", Glossary, last modified 28 July 2026. https://developer.mozilla.org/en-US/docs/Glossary/Compile (accessed 1 Dec 2026).
- Python Software Foundation, "Whetting Your Appetite", The Python Tutorial. https://docs.python.org/3/tutorial/appetite.html (accessed 1 Dec 2026).
- CISA, "Software Bill of Materials". https://www.cisa.gov/sbom (accessed 1 Dec 2026).
- GitHub Docs, "Continuous integration". https://docs.github.com/en/actions/get-started/continuous-integration (accessed 1 Dec 2026).
- OWASP, "Secrets Management Cheat Sheet", OWASP Cheat Sheet Series. https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html (accessed 1 Dec 2026).
- NIST, "Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities", SP 800-218, February 2022. https://csrc.nist.gov/pubs/sp/800/218/final (accessed 1 Dec 2026).
- Codecov, "Bash Uploader Security Update", April 2021. https://about.codecov.io/security-update/ (accessed 1 Dec 2026).
- GitHub Docs, "Secrets", GitHub Actions. https://docs.github.com/en/actions/concepts/security/secrets (accessed 1 Dec 2026).