From 360b412f6206696bdc6e04c8bf8bd26845f1777a Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Fri, 27 Mar 2026 09:50:53 +0100 Subject: [PATCH] Show go fmt output and avoid shell injection --- .github/workflows/development.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 21d16a1471..65135c51b3 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -47,7 +47,7 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - name: go fmt ./... (go version ${{ matrix.go-version }}) - run: test -z "$(go fmt ./...)" + run: go fmt ./...; git status && git diff --exit-code - name: go test -tags goolm ./... (go version ${{ matrix.go-version }}) run: go test -tags goolm ./... build-upload: @@ -72,8 +72,11 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - name: Build/upload matterbridge for ${{ matrix.platform.goos }}-${{ matrix.arch }} + env: + GOOS: ${{ matrix.platform.goos }} + GOARCH: ${{ matrix.arch }} run: | - CGO_ENABLED=0 GOOS=${{ matrix.platform.goos }} GOARCH=${{ matrix.arch }} go build -tags goolm -ldflags "-s -X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o matterbridge + CGO_ENABLED=0 go build -tags goolm -ldflags "-s -X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o matterbridge - name: Upload matterbridge-${{ matrix.name }}-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: