Skip to content

Commit

Permalink
Make the release binaries version detectable by Syft (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre authored Dec 13, 2024
1 parent fc15085 commit 90d9a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
options: >
--volume ${{ github.workspace }}:/build
--workdir /build
-e APIFIREWALL_NAMESPACE=github.com/wallarm/api-firewall
run: |-
set -e
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
mkdir -p /tmp/api-firewall-${{ matrix.artifact }} && \
go mod download -x && \
go build \
-ldflags="-X main.build=${{ env.X_TAG }} -extldflags=-static -s -w" \
-ldflags="-X main.build=${{ env.X_TAG }} -X ${APIFIREWALL_NAMESPACE}/internal/version.Version=${{ env.X_TAG }} -extldflags=-static -s -w" \
-o /tmp/api-firewall-${{ matrix.artifact }}/api-firewall \
-buildvcs=false ./cmd/api-firewall && \
/tmp/api-firewall-${{ matrix.artifact }}/api-firewall -v && \
Expand Down

0 comments on commit 90d9a0a

Please sign in to comment.