Commit 4f2a9af9 authored by Bart Kamphorst's avatar Bart Kamphorst
Browse files

fix: syft output as cyclonedx-json

parent 91c73f28
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,10 +16,14 @@ variables:
      echo "[*] Target image: ${TARGET_IMAGE}"
    - wget -qO- https://raw.githubusercontent.com/anchore/syft/main/install.sh |
      sh -s -- -b /usr/local/bin
    - syft packages ${TARGET_IMAGE} -o json > ${CI_PROJECT_DIR}/syft.json
    - syft packages ${TARGET_IMAGE} -o cyclonedx-json >
      ${CI_PROJECT_DIR}/syft.json
  artifacts:
    paths:
      - syft.json
    reports:
      cyclonedx:
        - syft.json

syft:
  extends: .syft