Skip to content

Commit 7d68f75

Browse files
soliton-poVoq
authored andcommitted
Show go fmt output and avoid shell injection
1 parent fad710f commit 7d68f75

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/development.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout code
4848
uses: actions/checkout@v5
4949
- name: go fmt ./... (go version ${{ matrix.go-version }})
50-
run: test -z "$(go fmt ./...)"
50+
run: go fmt ./...; git status && git diff --exit-code
5151
- name: go test -tags goolm ./... (go version ${{ matrix.go-version }})
5252
run: go test -tags goolm ./...
5353
build-upload:
@@ -72,8 +72,11 @@ jobs:
7272
- name: Checkout code
7373
uses: actions/checkout@v5
7474
- name: Build/upload matterbridge for ${{ matrix.platform.goos }}-${{ matrix.arch }}
75+
env:
76+
GOOS: ${{ matrix.platform.goos }}
77+
GOARCH: ${{ matrix.arch }}
7578
run: |
76-
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
79+
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
7780
- name: Upload matterbridge-${{ matrix.name }}-${{ matrix.arch }}
7881
uses: actions/upload-artifact@v4
7982
with:

0 commit comments

Comments
 (0)