diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b55211..cf876d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: check-latest: true - run: go version - name: build - run: make build + run: make build-gh - uses: anchore/sbom-action@78fc58e266e87a38d4194b2137a3d4e9bcaf7ca1 # v0.14.3 with: artifact-name: fwdctl-sbom.spdx.json diff --git a/Makefile b/Makefile index 14a94ff..61f6d64 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ endif go mod download go build \ -v \ - -ldflags="-s -w -X 'github.com/alegrey91/fwdctl/internal/constants.Version=${GITHUB_REF_NAME }'" \ + -ldflags='-s -w -X "github.com/alegrey91/fwdctl/internal/constants.Version=${GITHUB_REF_NAME}"' \ -o ${BINARY_DIR}/${BINARY_NAME} \ . diff --git a/install b/install index 9bf6a20..6ae010b 100755 --- a/install +++ b/install @@ -24,15 +24,6 @@ if [ ! -f "$BINARY_RELEASE_NAME" ]; then fi printf "[download succeded]\n" -file_checksum=$(cat $CHECKSUMS | grep -w "$BINARY_RELEASE_NAME" | cut -d " " -f1) -binary_checksum=$(sha256sum $BINARY_RELEASE_NAME | cut -d " " -f1) -# check if checksum is consistent -if [ "$file_checksum" != "$binary_checksum" ]; then - printf "Binary has been tampered!\n" - exit 1 -fi -printf "[checksum succeded]\n" - # install binary chmod +x "$BINARY_RELEASE_NAME" mv "$BINARY_RELEASE_NAME" "/usr/local/bin/$BINARY_NAME"