pylynk
is your primary tool to interface with interlynk's SAAS platform.
git clone https://github.com/interlynk-io/pylynk
pip3 install -r requirements.txt
python3 pylynk.py --help
or
docker pull ghcr.io/interlynk-io/pylynk:latest
PyLynk can be authenticated by setting an environment variable INTERLYNK_SECURITY_TOKEN
or by providing a -token
param to all commands.
export INTERLYNK_SECURITY_TOKEN=lynk_test_GDGEB2j6jnhkzLSAQk9U3wiiQLrbNT11Y8J4
python3 pylynk.py prods
OR
python3 pylynk.py prods --token lynk_test_GDGEB2j6jnhkzLSAQk9U3wiiQLrbNT11Y8J4
OR
export INTERLYNK_SECURITY_TOKEN=lynk_test_GDGEB2j6jnhkzLSAQk9U3wiiQLrbNT11Y8J4
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk prods
python3 pylynk.py prods --table
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk prods --table
python3 pylynk.py prods --json
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk prods --json
python3 pylynk.py vers --prodId 'e865710e-b262-4f44-9078-970052794a60' --table
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk vers --prodId 'e865710e-b262-4f44-9078-970052794a60' --table
python3 pylynk.py vers --prodId 'e865710e-b262-4f44-9078-970052794a60' --json
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk vers --prodId 'e865710e-b262-4f44-9078-970052794a60' --json
python3 pylynk.py vers --prod 'sbom-exec' --table
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk vers --prod 'sbom-exec' --table
python3 pylynk.py vers --prod 'sbomqs' --env 'production' --table
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk vers --prod 'sbomqs' --env 'production' --table
The status of actions associated with SBOM is reported in three states:
- UNKNOWN
- NOT_STARTED
- IN_PROGRESS
- COMPLETED
This applies to the following SBOM actions (represented with specific keys):
- SBOM Checks (Key:
checksStatus
) - SBOM Policies (Key:
policyStatus
) - SBOM Internal Labeling (Key:
labelingStatus
) - SBOM Automation Rules (Key:
automationStatus
) - SBOM Vulnerability Scan (Key:
vulnScanStatus
)
python3 pylynk.py status --prodId 'e865710e-b262-4f44-9078-970052794a60' --verId 'fbcc24ad-5911-4229-8943-acf863c07bb4'
Run the following command to upload an SBOM:
python3 pylynk.py download --prod 'sbomex' --verId 'fbcc24ad-5911-4229-8943-acf863c07bb4'
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk download --prod 'sbomex' --verId 'fbcc24ad-5911-4229-8943-acf863c07bb4'
Run the following command to upload an SBOM:
python3 pylynk.py download --prod 'sbomex' --env 'default' --vers 'sha256:5ed7e95ae79fe3fe6c4b8660f6f9e31154e64eca76ae42963a679fbb198c3951'
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk download --prod 'sbomex' --env 'default' --vers 'sha256:5ed7e95ae79fe3fe6c4b8660f6f9e31154e64eca76ae42963a679fbb198c3951'
Upload SBOM file sbomqs.cdx.json to the product named sbomqs
python3 pylynk.py upload --prod 'sbomqs' --sbom sbomqs.cdx.json
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk upload --prod 'sbomqs' --sbom sbomqs.cdx.json
Upload SBOM file sbomqs.cdx.json to the product named sbomqs under environment production
python3 pylynk.py upload --prod 'sbomqs' --env 'production' --sbom sbomqs.cdx.json
OR
docker run -e INTERLYNK_SECURITY_TOKEN ghcr.io/interlynk-io/pylynk upload --prod 'sbomqs' --env 'production' --sbom sbomqs.cdx.json
Use --verbose
or -v
with any command to see debug output.
To point to a different API endpoint than production
export INTERLYNK_API_URL=http://localhost:3000/lynkapi
- SBOM Assembler - A tool to compose a single SBOM by combining other (part) SBOMs
- SBOM Quality Score - A tool for evaluating the quality and completeness of SBOMs
- SBOM Search Tool - A tool to grep style semantic search in SBOMs
- SBOM Explorer - A tool for discovering and downloading SBOM from a public repository
We appreciate all feedback. The best ways to get in touch with us:
If you like this project, please support us by starring it.