The SCANOSS Code Scan Action enhances your software development process by automatically scanning code for open source components, security vulnerabilities and license compliance. It integrates seamlessly into GitHub workflows with configurable policies and comprehensive reporting.Documentation Index
Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:- An existing GitHub repository
- A valid SCANOSS API key
Getting Started
Configure GitHub Secrets
Navigate to your GitHub repository and add the following secrets: Settings → Secrets and variables → Actions → New repository secret| Variable Name | Value |
|---|---|
| SCANOSS_API_KEY | xyz789… |
Create Workflow File
Create.github/workflows/scanoss.yml in your repository:
Commit and Push
Understanding Results
GitHub Actions Summary
After the scan completes, view results directly in the Actions tab:- Navigate to Actions in your repository
- Select the latest workflow run
- Review the Annotations section to see detected snippets and matches

- Click View detailed comments on commit to examine individual file matches with detailed comparison

Resolving Undeclared Components
When undeclared components are detected, SCANOSS provides an easy resolution path:- Navigate to the failed Policy Check: Undeclared to see which components need declaration
-
If
scanoss.jsondoesn’t exist in your repository, click Create scanoss.json file to generate it automatically - Review the pre-populated component list and click Commit Changes

- The new commit automatically triggers a rescan, which will pass the undeclared policy check.

scanoss.json file serves as your project’s component declaration, ensuring your team has visibility into all open source code used in your repository. Keep this file updated as you add or remove dependencies to maintain accurate compliance tracking.