Files
tailscale/.github/workflows/golangci-lint.yml
Dep Updater b9262195b1 go.mod,go.toolchain.rev: bump golang.org/x/net, Go toolchain
* golang.org/x/net: v0.59.0 to v0.60.0
* Go toolchain: https://github.com/tailscale/go/compare/24ee2fd0610e6c505ee4ec061a81215afe119d1f...509d1573c1cafe9b210180e4ce87f44a409edbba
* golangci-lint: v2.13.2 to v2.14.0, for Go 1.27.2's export data version 5

Also fix testcontrol's serveC2N to read the whole c2n response before
returning, as x/net v0.60.0's http2 server now closes the request body
when the handler returns.

Triggered by @bradfitz via the bumpdep workflow.

Updates #21723

Signed-off-by: Dep Updater <[email protected]>
2026-10-09 08:12:09 -07:00

48 lines
1.2 KiB
YAML

name: golangci-lint
on:
# For now, only lint pull requests, not the main branches.
pull_request:
paths:
- ".github/workflows/golangci-lint.yml"
- "**.go"
- "go.mod"
- "go.sum"
# TODO(andrew): enable for main branch after an initial waiting period.
#push:
# branches:
# - main
workflow_dispatch:
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@b7bcab6379029e905e3f389a6bf301f1bc220662 # head as of 2026-03-04
with:
version: v2.14.0
# Show only new issues if it's a pull request.
only-new-issues: true
# Loading packages with a cold cache takes a while:
args: --timeout=10m