Menu

How to generate an SBOM for a React Native app
📰

How to generate an SBOM for a React Native app

DEV Community: security·Catalin Shipmark·4 days ago
#lirn7jgF
#devtosecurity#devto#dev#sbom#lock
Reading 0:00
15s threshold

In short

The JavaScript side is in package-lock.json or yarn.lock . A typical React Native app has hundreds of packages there.

Leave out what does not ship, such as test and build tools, and add the native side from ios/Podfile.lock and the Android Gradle build.

With Expo, generate the native folders first with npx expo prebuild .

Why it matters for React Native in particular

The EU Cyber Resilience Act (Regulation (EU) 2024/2847) applies to software placed on the EU market as part of a commercial activity, which covers most apps published by companies. Annex I, Part II requires a software bill of materials (SBOM) in a commonly used, machine-readable format, covering at least the top-level dependencies.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.