You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
The sbom scraper script only works if run in current working directory
Solution:
cd to SCRIPTDIR to run git commands and refer to all files by full path
Signed-off-by: John Hartley
# xmllint complains about a double import of the spdx schema, but we have to import via
330
333
# the wrapper to set the schema location to a local file, as xmllint fails to download
331
334
# them from the internet as they are https
332
-
xmllint "$PATCHED_OUTPUT" --schema cyclonedx-wrapper.xsd --noout 2>&1| grep -Fv "Skipping import of schema located at 'http://cyclonedx.org/schema/spdx' for the namespace 'http://cyclonedx.org/schema/spdx'"
335
+
xmllint "$PATCHED_OUTPUT" --schema "$SCRIPTDIR"/cyclonedx-wrapper.xsd --noout 2>&1| grep -Fv "Skipping import of schema located at 'http://cyclonedx.org/schema/spdx' for the namespace 'http://cyclonedx.org/schema/spdx'"
0 commit comments