grype/.github/scripts/syft-released-version-check.sh
Alex Goodman 51e1b6307b
Update syft, jotframe, and validations pipeline (#512)
* update syft and jotframe

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update validations and release pipeline

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* moved terminal package to golang.org/x/term

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update integration tests to account for package relationships

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add license exception for xz

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update Location and Coordinate references

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove benchmark tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove mac acceptance tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add syft-grype relationship notes in DEVELOPING.md

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-30 18:10:07 +00:00

10 lines
No EOL
263 B
Bash
Executable file

#!/usr/bin/env sh
SYFT_LINE=$(cat go.mod | grep github.com/anchore/syft)
if [ "$(echo $SYFT_LINE | grep -o '-' | wc -l)" -gt "1" ]; then
echo "syft version is not a released version! $SYFT_LINE"
exit 1
else
echo 'syft version is a released version!'
fi