Skip to content

Commit e17a209

Browse files
committed
Change script to add mktemp
1 parent abc3d93 commit e17a209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/upload-sbom-to-dependency-track.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
SBOM_FILE="bom.json"
3+
SBOM_FILE=$(mktemp)
44
BASE64_FILE=$(mktemp)
55

66
npx @cyclonedx/cyclonedx-npm --output-file ${SBOM_FILE}
@@ -13,7 +13,7 @@ cat <<EOF > ${PAYLOAD_FILE}
1313
}
1414
EOF
1515

16-
rm -f ${BASE64_FILE}
16+
rm -f ${SBOM_FILE} ${BASE64_FILE}
1717

1818
curl -X PUT \
1919
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)