Skip to content

Commit a0d1d1d

Browse files
committed
fix: repair malformed CI workflow YAML
The "Remove go.work" steps were concatenated onto adjacent lines, breaking the YAML parser. Separate into proper distinct steps.
1 parent e74c8b1 commit a0d1d1d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
go-version: ${{ env.GO_VERSION }}
5050
cache: true
5151
- name: Remove go.work
52-
run: rm -f go.work go.work.sum - name: gofumpt diff
52+
run: rm -f go.work go.work.sum
53+
- name: gofumpt diff
5354
run: |
5455
go install mvdan.cc/gofumpt@latest
5556
out=$(gofumpt -l .)
@@ -74,7 +75,8 @@ jobs:
7475
go-version: ${{ env.GO_VERSION }}
7576
cache: true
7677
- name: Remove go.work (local dev only)
77-
run: rm -f go.work go.work.sum - uses: golangci/golangci-lint-action@v7
78+
run: rm -f go.work go.work.sum
79+
- uses: golangci/golangci-lint-action@v7
7880
with:
7981
version: v2.1.0
8082
install-mode: goinstall
@@ -124,12 +126,11 @@ jobs:
124126
go-version: ${{ env.GO_VERSION }}
125127
cache: true
126128
- name: Remove go.work
127-
run: rm -f go.work go.work.sum - name: govulncheck
129+
run: rm -f go.work go.work.sum
130+
- name: govulncheck
128131
run: |
129-
- name: Remove go.work
130-
run: rm -f go.work go.work.sum go install golang.org/x/vuln/cmd/govulncheck@latest
131-
- name: Remove go.work
132-
run: rm -f go.work go.work.sum govulncheck ./...
132+
go install golang.org/x/vuln/cmd/govulncheck@latest
133+
govulncheck ./...
133134
- name: gosec (advisory)
134135
continue-on-error: true
135136
run: |

0 commit comments

Comments
 (0)