Skip to content

Commit

Permalink
Generate SBOM for Python wheel package.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi committed Aug 14, 2023
1 parent 0e0eb3c commit a9799f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/pip/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ do
tar cf - ${FILE} | (cd pip-build/pgadmin4; tar xf -)
done

# Generating SBOM
echo Generating SBOM...
cp requirements.txt pip-build/pgadmin4
syft pip-build/pgadmin4 -o cyclonedx-json > pip-build/pgadmin4/sbom.json
rm pip-build/pgadmin4/requirements.txt

# Create the distro config
echo Creating distro config...
echo HELP_PATH = \'../../docs/en_US/_build/html/\' > pip-build/pgadmin4/config_distro.py
Expand Down

0 comments on commit a9799f2

Please sign in to comment.