Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N #4

Merged
merged 205 commits into from
Mar 13, 2024
Merged

N #4

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
2ce596e
cmd/k8s-operator/deploy: allow modifying operator tags via Helm values
ChandonPierre Jan 19, 2024
832e5c7
util/nocasemaps: add AppendSliceElem method to nocasemaps (#10871)
as2643 Jan 19, 2024
7a0392a
wgengine/netstack: expose gVisor metrics through expvar
andrew-d Jan 19, 2024
457102d
go.mod: bump most deps for start of cycle
raggi Jan 20, 2024
5b4eb47
go.mod.sri: update SRI hash for go.mod changes
Jan 20, 2024
62b056d
VERSION.txt: this is v1.59.0 (#10884)
kari-ts Jan 20, 2024
213d696
magicsock: mute noisy expected peer mtu related error (#10870)
clairew Jan 20, 2024
ae79b2e
tsweb: add a helper to validate redirect URLs
danderson Jan 19, 2024
17eae5b
tool/gocross: force use of our custom toolchain
danderson Jan 20, 2024
7e3bcd2
go.mod,wgengine/netstack: bump gvisor
raggi Jan 19, 2024
b787c27
go.mod.sri: update SRI hash for go.mod changes
Jan 20, 2024
4e822c0
go.toolchain.rev: bump Tailscale Go version to 1.21.6
raggi Jan 20, 2024
b45089a
net/portmapper: handle cases where we have no supported clients
andrew-d Jan 22, 2024
370ec6b
cmd/k8s-operator: don't proceed with Ingress that has no valid backen…
irbekrm Jan 22, 2024
ce4553b
appc,ipn/ipnlocal: optimize preference adjustments when routes update
catzkorn Jan 23, 2024
0e2cb76
appc: add test to ensure that individual IPs are not removed during r…
raggi Jan 23, 2024
8b47322
wgengine/magicsock: implement probing of UDP path lifetime (#10844)
jwhited Jan 23, 2024
6ee9563
ipn/ipnlocal: fix proxy path that matches mount point (#10864)
irbekrm Jan 23, 2024
75f1d3e
ipn/ipnlocal: fix failing test (#10937)
irbekrm Jan 23, 2024
fd94d96
net/portmapper: support legacy "urn:dslforum-org" portmapping services
andrew-d Jan 22, 2024
0f3b2e7
util/expvarx: add a time and concurrency limiting expvar.Func wrapper
raggi Jan 24, 2024
fbfc3b7
cmd/tailscale/cli: run Watch with NotifyNoPrivateKeys (#10950)
awly Jan 25, 2024
cce189b
words: i like the direction this list is taking
catzkorn Jan 27, 2024
13f8a66
cmd/gitops-pusher: fix logic for checking credentials
willnorris Jan 29, 2024
9744ad4
cmd/hello: avoid deprecated apis (#10957)
Jan 29, 2024
fad6bae
ipnlocal: log failure to get ssh host keys
oxtoacart Jan 30, 2024
b4b2ec7
ipn/ipnlocal: fix pretty printing of multi-record peer DNS results
raggi Jan 31, 2024
2aeef4e
util/deephash: implement SelfHasher to allow types to hash themselves
twitchyliquid64 Jan 31, 2024
e1a4b89
appc,ipn/ipnlocal: add app connector routes if any part of a CNAME ch…
raggi Jan 31, 2024
ba70cbb
ipn/ipnlocal: fix app connector route advertisements on exit nodes
raggi Feb 1, 2024
84f8311
util/deephash: document pathological deephash behavior (#11010)
dsnet Feb 1, 2024
60657ac
util/deephash: tighten up SelfHasher API (#11012)
dsnet Feb 2, 2024
a633a30
cmd/hello: link to the Hello KB article (#11022)
Feb 2, 2024
5595b61
ipn/localapi: more http status cleanup (#10995)
kari-ts Feb 5, 2024
b752bde
types/views: add SliceMapKey[T]
maisem Feb 6, 2024
36efc50
tsweb: implementing bucketed statistics for started/finished counts
twitchyliquid64 Feb 7, 2024
af931dc
tsweb: replace domains/emails in paths when bucketing stats
twitchyliquid64 Feb 7, 2024
db3776d
go.toolchain.rev: bump to Go 1.22.0 (#11055)
awly Feb 7, 2024
0f5e031
appc: optimize dns response observation for large route tables
raggi Feb 6, 2024
0b16620
.github/workflows: add privileged tests workflow
raggi Oct 18, 2023
e0762fe
words: add a list of things you should yahoo!
raggi Nov 19, 2022
8d6d9d2
tsweb: normalize common StableID's in bucketed stats, export as LabelMap
twitchyliquid64 Feb 7, 2024
6537215
tsweb: normalize passkey identities in bucketed stats
twitchyliquid64 Feb 7, 2024
b6153ef
go.mod, README.md: use Go 1.22
bradfitz Feb 8, 2024
9612001
.github/workflows: update golangci-lint for Go 1.22
bradfitz Feb 8, 2024
5ea0711
Dockerfile: use Go 1.22
bradfitz Feb 8, 2024
2bd3c14
util/cmpx: delete now that we're using Go 1.22
bradfitz Feb 7, 2024
c424e19
.github/workflows: temporarily disable broken oss-fuzz action
bradfitz Feb 8, 2024
2404b14
go.mod.sri: update SRI hash for go.mod changes
Feb 8, 2024
a6cc2fd
cmd/{containerboot,k8s-operator/deploy/manifests}: optionally allow p…
irbekrm Feb 8, 2024
5486d8a
licenses: update tailscale{,d} licenses
Feb 8, 2024
78f257d
licenses: update android licenses
Jan 20, 2024
9f0eaa4
licenses: update win/apple licenses
Feb 8, 2024
128c99d
client/web: add new readonly mode
willnorris Jan 31, 2024
6f0c5e0
client/web: use smart quotes in web UI frontend
willnorris Feb 8, 2024
664b861
go.mod: update web-client-prebuilt module
Feb 8, 2024
1217f65
cmd/dist: update logs for synology builds
soniaappasamy Feb 8, 2024
6c79f55
ipnlocal: force-regen new authURL when it is too old (#10971)
agottardo Feb 8, 2024
0f042b9
cmd/tailscale/cli: fix exit node status output (#11076)
catzkorn Feb 8, 2024
efddad7
util/deephash: cleanup TODO in TestHash (#11080)
dsnet Feb 9, 2024
94a4f70
all: use reflect.TypeFor now available in Go 1.22 (#11078)
dsnet Feb 9, 2024
2e404b7
all: use new AppendEncode methods available in Go 1.22 (#11079)
dsnet Feb 9, 2024
993acf4
tailfs: initial implementation
oxtoacart Feb 2, 2024
c446451
cmd/gitops-pusher: only use OAuth creds if non-empty string
phirework Feb 3, 2024
291f91d
tsweb: update ServeMux matching to 1.22.0 syntax (#11087)
patrickod Feb 9, 2024
7c52b27
Revert "tsweb: update ServeMux matching to 1.22.0 syntax (#11087)" (#…
patrickod Feb 9, 2024
7039c06
fix toolchain not available error (#11083)
keisku Feb 9, 2024
6f6383f
.github: fuzzing is now unbroken
andrew-d Feb 9, 2024
2bb837a
client/web: only check policy caps for tagged nodes
soniaappasamy Feb 9, 2024
24bac27
util/rands: add Shuffle and Perm functions with on-stack RNG state
raggi Feb 6, 2024
79b5478
build(deps-dev): bump vite from 4.4.9 to 4.5.2 in /client/web
dependabot[bot] Feb 9, 2024
abab0d4
tailfs: clean up naming and package structure
oxtoacart Feb 9, 2024
ddcffae
tailfs: disable TailFSForLocal via policy
oxtoacart Feb 9, 2024
87154a2
tailfs: fix startup issues on windows
oxtoacart Feb 9, 2024
55b372a
tailscaled: revert to using pointers for subcommands
oxtoacart Feb 10, 2024
c1c50cf
util/cloudenv: add support for DigitalOcean
andrew-d Feb 9, 2024
370ecb4
tailcfg: remove UserProfile.Groups
maisem Feb 11, 2024
58b8f78
flake.nix: build tailscale with go 1.22
danderson Feb 12, 2024
d0ef3a2
cmd/tailscale: hide share subcommand
oxtoacart Feb 12, 2024
c42a4e4
tailfs: listen for local clients only on 100.100.100.100
oxtoacart Feb 11, 2024
f7f4960
types/views: add test that LenIter doesn't allocate
bradfitz Feb 13, 2024
5bd19fd
cmd/k8s-operator,k8s-operator: proxy configuration mechanism via a ne…
irbekrm Feb 13, 2024
30c9189
tsweb: update ServeMux matching to 1.22.0 syntax (#11090)
patrickod Feb 13, 2024
f7acbef
wgengine/router: make the Windows ifconfig implementation reuse exist…
dblohm7 Feb 13, 2024
256ecd0
Revert "tsweb: update ServeMux matching to 1.22.0 syntax (#11090)" (#…
patrickod Feb 13, 2024
7c0651a
scripts/installer.sh: add tuxedoOS to the Ubuntu copies
Nathanwoodburn Feb 7, 2024
b0e96a6
net/dns: log more info when openresolv commands fail
andrew-d Feb 14, 2024
61a1644
go.mod, all: move away from inet.af domain seized by Taliban
bradfitz Feb 14, 2024
7ad2bb8
go.mod.sri: update SRI hash for go.mod changes
Feb 14, 2024
b7104cd
util/topk: add package containing a probabilistic top-K tracker
andrew-d Feb 3, 2024
38bba2d
clientupdate: disable auto update on NixOS (#11136)
patrickod Feb 14, 2024
52f16b5
doctor/ethtool, ipn/ipnlocal: add ethtool bugreport check
andrew-d Feb 15, 2024
4d66841
wgengine/router: fix ip rule restoration
jasonwbarnett Jan 15, 2024
3aca29e
VERSION.txt: this is v1.61.0
oxtoacart Feb 15, 2024
69f5664
ipn/ipnlocal: fix doctor API endpoint (#11155)
santrancisco Feb 16, 2024
2448781
cmd/tailscale: make web client URL clickable
willnorris Feb 16, 2024
6b582cb
cmd/tailscale: support clickable IPv6 web client addresses
willnorris Feb 16, 2024
44e337c
tool/gocross: pass flags for visionOS and visionOS Simulator (#11127)
agottardo Feb 16, 2024
70b7201
net/dns: fix infinite loop when run on Amazon Linux 2023
andrew-d Feb 16, 2024
6c3899e
logpolicy: allow longer idle log upload connections
raggi Feb 16, 2024
794af40
ipn/ipnlocal: remove ancient transition mechanism for https certs
bradfitz Feb 17, 2024
a4a909a
prober: add TLS probe constructor to split dial addr from cert name
bradfitz Feb 19, 2024
8fe5042
net/ktimeout: add a package to set TCP user timeout
raggi Feb 19, 2024
d756622
util/syspolicy: add ManagedBy keys for Windows (#11183)
agottardo Feb 20, 2024
91a1019
cmd/testwrapper: apply results of all unit tests to coverage for all …
oxtoacart Feb 21, 2024
7708ab6
cmd/tailscale/cli: pass "-o 'CanonicalizeHostname no'" to ssh
icio Nov 23, 2023
2988c1e
derp: plumb context to Server.verifyClient
bradfitz Feb 22, 2024
10d130b
cmd/derper, derp, tailcfg: add admission controller URL option
bradfitz Feb 22, 2024
0359c2f
util/syspolicy: add 'ResetToDefaults' (#11194)
agottardo Feb 22, 2024
edbad6d
cmd/derper: add user timeout and reduce TCP keepalive
raggi Feb 19, 2024
72140da
client/web: update vite-plugin-svgr to latest version (#11197)
mpminardi Feb 22, 2024
713d292
client/web: update plugin-react-swc to latest version (#11199)
mpminardi Feb 22, 2024
e8d2fc7
net/tshttpproxy: log when we're using a proxy
andrew-d Feb 23, 2024
131f909
wgengine/wglog: quieten WireGuard logs for allowedips
raggi Feb 23, 2024
15b2c67
cmd/tailscale: add node attribute instructions to share command help
oxtoacart Feb 23, 2024
ac281dd
client/web: update vite and vitest to latest versions (#11200)
mpminardi Feb 23, 2024
c8c999d
cli/debug: rename DERP debug mode (#11220)
agottardo Feb 23, 2024
651c489
net/interfaces: reduce & cleanup logs on iOS
raggi Feb 24, 2024
c9b6d19
.github/workflows: fix typo in XDG_CACHE_HOME
raggi Feb 24, 2024
0c5e65e
cmd/derper: apply TCP keepalive and timeout to TLS as well
raggi Feb 24, 2024
8d0d464
net/dns: timeout DOH requests after 10s without response headers
raggi Feb 24, 2024
8b9474b
wgengine/wgcfg: don't send UAPI to disable keep-alives on new peers
bradfitz Feb 24, 2024
6ad6d6b
wgengine/wglog: add TS_DEBUG_RAW_WGLOG envknob for raw wg logs
bradfitz Feb 24, 2024
ff1391a
net/dns/publicdns: add Mullvad family DNS to the list of known DoH se…
mrrfv Feb 23, 2024
e1bd748
all: remove LenIter, use Go 1.22 range-over-int instead
bradfitz Feb 25, 2024
50fb8b9
tailfs: replace webdavfs with reverse proxies
oxtoacart Feb 21, 2024
cd9cf93
wgengine/netstack: expose TCP forwarder drops via clientmetrics
knyar Feb 26, 2024
9aa704a
client/web: restrict serveAPI endpoints to peer capabilities
soniaappasamy Jan 18, 2024
95f2656
client/web: use grants on web UI frontend
soniaappasamy Feb 22, 2024
82c569a
go.mod: update web-client-prebuilt module
Feb 26, 2024
b42b981
net/dns: do not wait for the interface registry key to appear if the …
nickkhyl Feb 24, 2024
7ef1fb1
cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevi…
nickkhyl Feb 24, 2024
8cc5c51
health: warn about reverse path filtering and exit nodes
knyar Jan 3, 2024
9a8c2f4
types/key: remove copy returning array by value
bradfitz Feb 25, 2024
219efeb
wgengine: reduce critical section
bradfitz Feb 25, 2024
eb28818
wgengine: make pendOpen time later, after dup check
bradfitz Feb 25, 2024
1cf8582
ipn/ipnstate, wgengine/wgint: add handshake attempts accessors
bradfitz Feb 25, 2024
086ef19
scripts/installer.sh: auto-start tailscale on Alpine (#11214)
kelivel Feb 27, 2024
05acf76
tailfs: fix race condition in tailfs_test
oxtoacart Feb 27, 2024
45d27fa
cmd/k8s-operator,k8s-operator,go.{mod,sum},tstest/tools: add Tailscal…
irbekrm Feb 27, 2024
303125d
cmd/k8s-operator: configure all proxies with declarative config (#11238)
irbekrm Feb 27, 2024
95dcc17
cmd/k8s-operator: reconcile tailscale Ingresses when their backend Se…
irbekrm Feb 27, 2024
352c1ac
tailcfg: add latitude, longitude for node location (#11162)
clairew Feb 27, 2024
c5abbcd
wgengine/netstack: add a per-client limit for in-flight TCP forwards
andrew-d Feb 26, 2024
7912d76
client/web: update to typescript 5.3.3 (#11267)
mpminardi Feb 27, 2024
23e9447
tsweb: expose function to generate request IDs
andrew-d Feb 27, 2024
a20e46a
util/cache: fix missing interface methods (#11275)
andrew-d Feb 28, 2024
3dd8ae2
net/tstun: fix spelling of "WireGuard"
andrew-d Feb 28, 2024
74b8985
ipn/ipnstate, wgengine: make PeerStatusLite.LastHandshake zero Time m…
bradfitz Feb 28, 2024
a8a5252
wgengine: use slices.Clone in two places
bradfitz Feb 28, 2024
b4ff9a5
wgengine: rename local variable from 'found' to conventional 'ok'
bradfitz Feb 28, 2024
7e17aeb
.github/workflows: fix regular breakage of go toolchains
raggi Feb 28, 2024
69f4b45
wgengine{,/wgint}: add wgint.Peer wrapper type, add to wgengine.Engine
bradfitz Feb 28, 2024
e83e2e8
client/web: fix Vite CJS deprecation warning (#11288)
rosszurowski Feb 28, 2024
2d5d6f5
ipn,wgengine: only intercept TailFS traffic on quad 100
oxtoacart Feb 28, 2024
b68a09c
ipn/ipnlocal: make active IPN sessions keyed by sessionID
bradfitz Feb 28, 2024
c747443
tsweb: allow empty redirect URL in CleanRedirectURL (#11295)
awly Feb 28, 2024
f18f591
wgengine: plumb the PeerByKey from wgengine to magicsock
bradfitz Feb 29, 2024
80f1cb6
tailfs: support storing bookmark data on shares
oxtoacart Feb 28, 2024
e324a56
ipn: include full tailfs shares in ipn notifications
oxtoacart Feb 28, 2024
097c5ed
util/linuxfw: insert rather than append nftables DNAT rule (#11303)
irbekrm Feb 29, 2024
23fbf00
clientupdate: handle multiple versions in "apk info tailscale" output…
awly Feb 29, 2024
00554ad
go.mod.sri: update SRI hash for go.mod changes
Feb 27, 2024
232a2d6
tailfs: only impersonate unprivileged user if able to sudo -u as that…
oxtoacart Mar 1, 2024
dff6f33
docs/k8s: update docs (#11307)
irbekrm Mar 4, 2024
13853e7
tsweb: add more test cases for TestCleanRedirectURL (#11331)
Mar 5, 2024
d610f8e
tailcfg: add suggest exit node related node attribute (#11329)
clairew Mar 5, 2024
2fa20e3
util/cmpver: add Less/LessEq helper funcs
icio Feb 7, 2024
8780e33
go.toolchain.rev: bump Go toolchain to 1.22.1
bradfitz Mar 5, 2024
65c3c69
{ipn/serve,cmd/tailscale/cli}: move some shared funcs to ipn
soniaappasamy Mar 5, 2024
4338db2
wgengine/magicsock: prefer link-local addresses to private ones
andrew-d Mar 5, 2024
6a4e532
licenses: update tailscale{,d} licenses
Feb 27, 2024
797d75c
licenses: update win/apple licenses
Mar 5, 2024
d59878e
licenses: update android licenses
Feb 28, 2024
65255b0
client/tailscale: add postures to UserRuleMatch
kradalby Feb 26, 2024
c58c59e
{ipn,cmd/tailscale/cli}: move ServeConfig mutation logic to ipn/serve
soniaappasamy Mar 5, 2024
00373f0
ipn/ipnlocal: exclude mullvad exit nodes from TailFS peers list
oxtoacart Mar 6, 2024
0cb8646
ipn/localapi: add set-gui-visible endpoint
agottardo Feb 29, 2024
6f66f5a
ipn: add comment about thread-safety to StateStore
oxtoacart Mar 6, 2024
fd942b5
ipn/ipnlocal: reduce allocations in TailFS share notifications
oxtoacart Feb 29, 2024
90c4067
util/linuxfw: add container-friendly IPv6 NAT check (#11353)
irbekrm Mar 6, 2024
8f27d51
tsweb: add String method to tsweb.RequestID
andrew-d Mar 7, 2024
62cf83e
go.mod: bump gvisor
andrew-d Mar 7, 2024
9884d06
net/interfaces: fix test hang on Darwin
andrew-d Mar 7, 2024
3047b62
docs/k8s: don't run subnet router in userspace mode (#11363)
irbekrm Mar 7, 2024
3417643
cmd/derper, types/logger: move log filter to shared package
andrew-d Feb 15, 2024
c662bd9
client/web: dedupe packages in yarn.lock (#11327)
mpminardi Mar 7, 2024
74e33b9
tailcfg: bump CapabilityVersion (#11368)
clairew Mar 7, 2024
54e5253
version/mkversion: enforce synology versions within int32 range
soniaappasamy Mar 8, 2024
f072d01
wgengine/magicsock: don't change DERP home when not connected to control
andrew-d Mar 8, 2024
16ae0f6
cmd/viewer: import views when generating byteSliceField
oxtoacart Mar 7, 2024
6c160e6
ipn,tailfs: tie TailFS share configuration to user profile
oxtoacart Mar 7, 2024
e496451
ipn,cmd/tailscale,client/tailscale: add support for renaming TailFS s…
oxtoacart Mar 8, 2024
50a570a
Code Improvements (#11311)
Panchajanya1999 Mar 8, 2024
43fba6e
util/linuxfw: correct logical error in NAT table check (#11380)
raggi Mar 8, 2024
055117a
util/linuxfw: fix support for containers without IPv6 iptables filter…
raggi Mar 8, 2024
04fceae
go.mod.sri: update SRI hash for go.mod changes
Mar 7, 2024
ad33e47
ipn/{ipnlocal,localapi}: add debug verb to force spam IPN bus NetMap
bradfitz Mar 10, 2024
7429e89
wgengine/netstack: fix bug with duplicate SYN packets in client limit
andrew-d Feb 29, 2024
205a10b
prober: export probe counters and cumulative latency
knyar Feb 28, 2024
5018683
prober: remove unused derp prober latency measurements
knyar Feb 28, 2024
f12d255
prober: add a DERP bandwidth probe
knyar Feb 28, 2024
da3cf12
VERSION.txt: this is v1.63.0
knyar Mar 13, 2024
358177b
Bakup (#2)
Asutorufa Jan 19, 2024
a69d557
Merge branch 'tailscale-main' into n
Asutorufa Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
83 changes: 83 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main, release-branch/* ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
merge_group:
branches: [ main ]
schedule:
- cron: '31 14 * * 5'

concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Install a more recent Go that understands modern go.mod content.
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
40 changes: 40 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: golangci-lint
on:
# For now, only lint pull requests, not the main branches.
pull_request:

# 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@v4

- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false

- name: golangci-lint
# Note: this is the 'v3' tag as of 2023-08-14
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299
with:
version: v1.56

# Show only new issues if it's a pull request.
only-new-issues: true
Loading
Loading