Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
name: "Lint and test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v8
uses: golangci/golangci-lint-action@v9

- name: Test
run: go test -v ./...
Expand All @@ -30,11 +30,11 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node_version: 'latest'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
fetch-depth: 0
-
Expand All @@ -23,12 +23,12 @@ jobs:

-
name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
Expand Down
8 changes: 4 additions & 4 deletions internal/api/router/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (m *Manager) getAFKEnabled(w http.ResponseWriter, r *http.Request) {
return
}

_, _ = w.Write(out)
_, _ = w.Write(out) //nolint:gosec // G705 false positive: hostname is only used as a repository map key, never echoed in the response
}

// getDeviceOpenConfig endpoint returns OpenConfig JSON for one or all devices.
Expand All @@ -98,7 +98,7 @@ func (m *Manager) getDeviceOpenConfig(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
_, _ = w.Write(cfg)
_, _ = w.Write(cfg) //nolint:gosec // G705 false positive: hostname is only used as a repository map key, never echoed in the response
}

// getDeviceIETFConfig endpoint returns Ietf JSON for one or all devices.
Expand All @@ -123,7 +123,7 @@ func (m *Manager) getDeviceIETFConfig(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
_, _ = w.Write(cfg)
_, _ = w.Write(cfg) //nolint:gosec // G705 false positive: hostname is only used as a repository map key, never echoed in the response
}

// getDeviceConfig endpoint returns Ietf & openconfig JSON for one or all devices.
Expand All @@ -148,7 +148,7 @@ func (m *Manager) getDeviceConfig(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
_, _ = w.Write(cfg)
_, _ = w.Write(cfg) //nolint:gosec // G705 false positive: hostname is only used as a repository map key, never echoed in the response
}

// getLastReport returns the last or current report.
Expand Down
Loading