Skip to content

Commit 8de78e6

Browse files
authored
Merge branch 'trunk' into fix-9149-set-default-remote-name
2 parents 5f305e8 + 722acf0 commit 8de78e6

929 files changed

Lines changed: 423 additions & 157132 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deployment.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
# our scripts, which rely on the specific file names generated by GoReleaser.
5757
version: v2.13.1
5858
install-only: true
59+
# We temporarily create a tag on HEAD to make the right version embedded
60+
# in the built binaries, BUT we don't push it to the remote.
61+
- name: Create temporary tag
62+
env:
63+
TAG_NAME: ${{ inputs.tag_name }}
64+
run: git tag "$TAG_NAME"
5965
- name: Build release binaries
6066
env:
6167
TAG_NAME: ${{ inputs.tag_name }}
@@ -111,6 +117,12 @@ jobs:
111117
# our scripts, which rely on the specific file names generated by GoReleaser.
112118
version: v2.13.1
113119
install-only: true
120+
# We temporarily create a tag on HEAD to make the right version embedded
121+
# in the built binaries, BUT we don't push it to the remote.
122+
- name: Create temporary tag
123+
env:
124+
TAG_NAME: ${{ inputs.tag_name }}
125+
run: git tag "$TAG_NAME"
114126
- name: Build release binaries
115127
env:
116128
TAG_NAME: ${{ inputs.tag_name }}
@@ -176,17 +188,24 @@ jobs:
176188
METADATA_PATH: ${{ runner.temp }}\acs\metadata.json
177189
run: |
178190
# Download Azure Code Signing client containing the DLL needed for signtool in script/sign
179-
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Azure.CodeSigning.Client/1.0.43 -OutFile $Env:ACS_ZIP -Verbose
191+
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Microsoft.Trusted.Signing.Client/1.0.95 -OutFile $Env:ACS_ZIP -Verbose
180192
Expand-Archive $Env:ACS_ZIP -Destination $Env:ACS_DIR -Force -Verbose
181193
182194
# Generate metadata file for signtool, used in signing box .exe and .msi
183195
@{
184196
CertificateProfileName = "GitHubInc"
185197
CodeSigningAccountName = "GitHubInc"
186198
CorrelationId = $Env:CORRELATION_ID
187-
Endpoint = "https://wus.codesigning.azure.net/"
199+
Endpoint = "https://wus3.codesigning.azure.net/"
188200
} | ConvertTo-Json | Out-File -FilePath $Env:METADATA_PATH
189201
202+
# We temporarily create a tag on HEAD to make the right version embedded
203+
# in the built binaries, BUT we don't push it to the remote.
204+
- name: Create temporary tag
205+
shell: bash
206+
env:
207+
TAG_NAME: ${{ inputs.tag_name }}
208+
run: git tag "$TAG_NAME"
190209
# Azure Code Signing leverages the environment variables for secrets that complement the metadata.json
191210
# file generated above (AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID)
192211
# For more information, see https://learn.microsoft.com/en-us/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
export GOROOT=$(go env GOROOT)
6161
export PATH=${GOROOT}/bin:$PATH
62-
go install github.com/google/go-licenses@5348b744d0983d85713295ea08a20cca1654a45e # v2.0.1
62+
go install github.com/google/go-licenses/v2@3e084b0caf710f7bfead967567539214f598c0a2 # v2.0.1
6363
make licenses-check
6464
6565
# Discover vulnerabilities within Go standard libraries used to build GitHub CLI using govulncheck.

.golangci.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,27 @@ version: "2"
33
linters:
44
default: none
55
enable:
6-
- bodyclose
7-
- copyloopvar
8-
- durationcheck
9-
- gocritic
10-
- govet
11-
- ineffassign
12-
- nilerr
13-
- nolintlint
6+
- asasalint # checks for pass []any as any in variadic func(...any)
7+
- asciicheck # checks that your code does not contain non-ASCII identifiers
8+
- bidichk # checks for dangerous unicode character sequences
9+
- bodyclose # checks whether HTTP response body is closed successfully
10+
- copyloopvar # detects places where loop variables are copied (Go 1.22+)
11+
- durationcheck # checks for two durations multiplied together
12+
- exptostd # detects functions from golang.org/x/exp/ that can be replaced by std functions
13+
- fatcontext # detects nested contexts in loops
14+
- gocheckcompilerdirectives # validates go compiler directive comments (//go:)
15+
- gochecksumtype # checks exhaustiveness on Go "sum types"
16+
- gocritic # provides diagnostics that check for bugs, performance and style issues
17+
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
18+
- goprintffuncname # checks that printf-like functions are named with f at the end
19+
- govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
20+
- ineffassign # detects when assignments to existing variables are not used
21+
- nilerr # finds the code that returns nil even if it checks that the error is not nil
22+
- nolintlint # reports ill-formed or insufficient nolint directives
23+
- nosprintfhostport # checks for misuse of Sprintf to construct a host with port in a URL
24+
- reassign # checks that package variables are not reassigned
25+
- unused # checks for unused constants, variables, functions and types
26+
1427
# To enable later due to too many issues, and confirm we need them:
1528
# - gosec
1629
# - staticcheck

go.mod

Lines changed: 35 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ require (
4444
github.com/rivo/tview v0.42.0
4545
github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7
4646
github.com/sigstore/protobuf-specs v0.5.0
47-
github.com/sigstore/sigstore-go v1.1.3
47+
github.com/sigstore/sigstore-go v1.1.4
4848
github.com/spf13/cobra v1.10.2
4949
github.com/spf13/pflag v1.0.10
5050
github.com/stretchr/testify v1.11.1
5151
github.com/theupdateframework/go-tuf/v2 v2.3.0
5252
github.com/vmihailenco/msgpack/v5 v5.4.1
53-
github.com/yuin/goldmark v1.7.13
53+
github.com/yuin/goldmark v1.7.16
5454
github.com/zalando/go-keyring v0.2.6
5555
golang.org/x/crypto v0.46.0
5656
golang.org/x/sync v0.19.0
@@ -64,21 +64,7 @@ require (
6464

6565
require (
6666
al.essio.dev/pkg/shellescape v1.6.0 // indirect
67-
cel.dev/expr v0.24.0 // indirect
68-
cloud.google.com/go v0.121.6 // indirect
69-
cloud.google.com/go/auth v0.16.5 // indirect
70-
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
71-
cloud.google.com/go/compute/metadata v0.9.0 // indirect
72-
cloud.google.com/go/iam v1.5.2 // indirect
73-
cloud.google.com/go/longrunning v0.6.7 // indirect
74-
cloud.google.com/go/monitoring v1.24.2 // indirect
75-
cloud.google.com/go/spanner v1.84.1 // indirect
76-
cloud.google.com/go/storage v1.56.1 // indirect
7767
dario.cat/mergo v1.0.2 // indirect
78-
github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp v1.5.3 // indirect
79-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.30.0 // indirect
80-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.53.0 // indirect
81-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.53.0 // indirect
8268
github.com/Masterminds/goutils v1.1.1 // indirect
8369
github.com/Masterminds/semver/v3 v3.4.0 // indirect
8470
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
@@ -88,18 +74,16 @@ require (
8874
github.com/aymerick/douceur v0.2.0 // indirect
8975
github.com/blang/semver v3.5.1+incompatible // indirect
9076
github.com/catppuccin/go v0.3.0 // indirect
91-
github.com/cespare/xxhash/v2 v2.3.0 // indirect
9277
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 // indirect
93-
github.com/charmbracelet/bubbletea v1.3.6 // indirect
78+
github.com/charmbracelet/bubbletea v1.3.10 // indirect
9479
github.com/charmbracelet/colorprofile v0.3.1 // indirect
95-
github.com/charmbracelet/x/ansi v0.9.3 // indirect
80+
github.com/charmbracelet/x/ansi v0.10.2 // indirect
9681
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
9782
github.com/charmbracelet/x/exp/slice v0.0.0-20250630141444-821143405392 // indirect
9883
github.com/charmbracelet/x/exp/strings v0.0.0-20250630141444-821143405392 // indirect
9984
github.com/charmbracelet/x/term v0.2.1 // indirect
10085
github.com/cli/browser v1.3.0 // indirect
10186
github.com/cli/shurcooL-graphql v0.0.4 // indirect
102-
github.com/cncf/xds/go v0.0.0-20251022180443-0feb69152e9f // indirect
10387
github.com/containerd/stargz-snapshotter/estargz v0.18.1 // indirect
10488
github.com/cyberphone/json-canonicalization v0.0.0-20241213102144-19d51d7fe467 // indirect
10589
github.com/danieljoos/wincred v1.2.2 // indirect
@@ -110,69 +94,54 @@ require (
11094
github.com/docker/distribution v2.8.3+incompatible // indirect
11195
github.com/docker/docker-credential-helpers v0.9.3 // indirect
11296
github.com/dustin/go-humanize v1.0.1 // indirect
113-
github.com/envoyproxy/go-control-plane/envoy v1.35.0 // indirect
114-
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
11597
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
11698
github.com/fatih/color v1.18.0 // indirect
117-
github.com/felixge/httpsnoop v1.0.4 // indirect
118-
github.com/fsnotify/fsnotify v1.9.0 // indirect
11999
github.com/gdamore/encoding v1.0.1 // indirect
120-
github.com/go-chi/chi/v5 v5.2.3 // indirect
121-
github.com/go-jose/go-jose/v4 v4.1.3 // indirect
122100
github.com/go-logr/logr v1.4.3 // indirect
123101
github.com/go-logr/stdr v1.2.2 // indirect
124-
github.com/go-openapi/analysis v0.23.0 // indirect
125-
github.com/go-openapi/errors v0.22.2 // indirect
126-
github.com/go-openapi/jsonpointer v0.21.1 // indirect
127-
github.com/go-openapi/jsonreference v0.21.0 // indirect
128-
github.com/go-openapi/loads v0.22.0 // indirect
129-
github.com/go-openapi/runtime v0.28.0 // indirect
130-
github.com/go-openapi/spec v0.21.0 // indirect
131-
github.com/go-openapi/strfmt v0.23.0 // indirect
132-
github.com/go-openapi/swag v0.24.1 // indirect
133-
github.com/go-openapi/swag/cmdutils v0.24.0 // indirect
134-
github.com/go-openapi/swag/conv v0.24.0 // indirect
135-
github.com/go-openapi/swag/fileutils v0.24.0 // indirect
136-
github.com/go-openapi/swag/jsonname v0.24.0 // indirect
137-
github.com/go-openapi/swag/jsonutils v0.24.0 // indirect
138-
github.com/go-openapi/swag/loading v0.24.0 // indirect
139-
github.com/go-openapi/swag/mangling v0.24.0 // indirect
140-
github.com/go-openapi/swag/netutils v0.24.0 // indirect
141-
github.com/go-openapi/swag/stringutils v0.24.0 // indirect
142-
github.com/go-openapi/swag/typeutils v0.24.0 // indirect
143-
github.com/go-openapi/swag/yamlutils v0.24.0 // indirect
144-
github.com/go-openapi/validate v0.24.0 // indirect
102+
github.com/go-openapi/analysis v0.24.1 // indirect
103+
github.com/go-openapi/errors v0.22.4 // indirect
104+
github.com/go-openapi/jsonpointer v0.22.1 // indirect
105+
github.com/go-openapi/jsonreference v0.21.3 // indirect
106+
github.com/go-openapi/loads v0.23.2 // indirect
107+
github.com/go-openapi/runtime v0.29.2 // indirect
108+
github.com/go-openapi/spec v0.22.1 // indirect
109+
github.com/go-openapi/strfmt v0.25.0 // indirect
110+
github.com/go-openapi/swag v0.25.4 // indirect
111+
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
112+
github.com/go-openapi/swag/conv v0.25.4 // indirect
113+
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
114+
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
115+
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
116+
github.com/go-openapi/swag/loading v0.25.4 // indirect
117+
github.com/go-openapi/swag/mangling v0.25.4 // indirect
118+
github.com/go-openapi/swag/netutils v0.25.4 // indirect
119+
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
120+
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
121+
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
122+
github.com/go-openapi/validate v0.25.1 // indirect
145123
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
146124
github.com/godbus/dbus/v5 v5.1.0 // indirect
147-
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
148125
github.com/google/certificate-transparency-go v1.3.2 // indirect
149-
github.com/google/s2a-go v0.1.9 // indirect
150126
github.com/google/uuid v1.6.0 // indirect
151-
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
152-
github.com/googleapis/gax-go/v2 v2.15.0 // indirect
153127
github.com/gorilla/css v1.0.1 // indirect
154-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
128+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
155129
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
156-
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
157130
github.com/henvic/httpretty v0.1.4 // indirect
158131
github.com/huandu/xstrings v1.5.0 // indirect
159132
github.com/in-toto/in-toto-golang v0.9.0 // indirect
160133
github.com/inconshreveable/mousetrap v1.1.0 // indirect
161134
github.com/itchyny/gojq v0.12.17 // indirect
162135
github.com/itchyny/timefmt-go v0.1.6 // indirect
163136
github.com/jedisct1/go-minisign v0.0.0-20241212093149-d2f9f49435c7 // indirect
164-
github.com/josharian/intern v1.0.0 // indirect
165137
github.com/klauspost/compress v1.18.1 // indirect
166-
github.com/letsencrypt/boulder v0.20250630.0 // indirect
167138
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
168-
github.com/mailru/easyjson v0.9.0 // indirect
169139
github.com/mattn/go-localereader v0.0.1 // indirect
170-
github.com/mattn/go-runewidth v0.0.16 // indirect
140+
github.com/mattn/go-runewidth v0.0.17 // indirect
171141
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
172142
github.com/mitchellh/copystructure v1.2.0 // indirect
173143
github.com/mitchellh/go-homedir v1.1.0 // indirect
174144
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
175-
github.com/mitchellh/mapstructure v1.5.0 // indirect
176145
github.com/mitchellh/reflectwalk v1.0.2 // indirect
177146
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
178147
github.com/muesli/cancelreader v0.2.2 // indirect
@@ -181,65 +150,39 @@ require (
181150
github.com/oklog/ulid v1.3.1 // indirect
182151
github.com/opencontainers/go-digest v1.0.0 // indirect
183152
github.com/opencontainers/image-spec v1.1.1 // indirect
184-
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
185153
github.com/pkg/errors v0.9.1 // indirect
186-
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
187154
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
188155
github.com/rivo/uniseg v0.4.7 // indirect
189156
github.com/rodaine/table v1.3.0 // indirect
190157
github.com/russross/blackfriday/v2 v2.1.0 // indirect
191-
github.com/sagikazarmark/locafero v0.9.0 // indirect
192-
github.com/sassoftware/relic v7.2.1+incompatible // indirect
193158
github.com/secure-systems-lab/go-securesystemslib v0.9.1 // indirect
194159
github.com/shibumi/go-pathspec v1.3.0 // indirect
195160
github.com/shopspring/decimal v1.4.0 // indirect
196161
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 // indirect
197-
github.com/sigstore/rekor v1.4.2 // indirect
198-
github.com/sigstore/rekor-tiles v0.1.11 // indirect
199-
github.com/sigstore/sigstore v1.9.6-0.20250729224751-181c5d3339b3 // indirect
200-
github.com/sigstore/timestamp-authority v1.2.9 // indirect
162+
github.com/sigstore/rekor v1.4.3 // indirect
163+
github.com/sigstore/rekor-tiles/v2 v2.0.1 // indirect
164+
github.com/sigstore/sigstore v1.10.0 // indirect
165+
github.com/sigstore/timestamp-authority/v2 v2.0.3 // indirect
201166
github.com/sirupsen/logrus v1.9.3 // indirect
202-
github.com/sourcegraph/conc v0.3.0 // indirect
203-
github.com/spf13/afero v1.14.0 // indirect
204-
github.com/spf13/cast v1.9.2 // indirect
205-
github.com/spf13/viper v1.20.1 // indirect
206-
github.com/spiffe/go-spiffe/v2 v2.6.0 // indirect
167+
github.com/spf13/cast v1.10.0 // indirect
207168
github.com/stretchr/objx v0.5.2 // indirect
208-
github.com/subosito/gotenv v1.6.0 // indirect
209-
github.com/theupdateframework/go-tuf v0.7.0 // indirect
210169
github.com/thlib/go-timezone-local v0.0.6 // indirect
211-
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
212-
github.com/transparency-dev/formats v0.0.0-20250421220931-bb8ad4d07c26 // indirect
170+
github.com/transparency-dev/formats v0.0.0-20251017110053-404c0d5b696c // indirect
213171
github.com/transparency-dev/merkle v0.0.2 // indirect
214-
github.com/transparency-dev/tessera v1.0.0-rc3 // indirect
215172
github.com/vbatts/tar-split v0.12.2 // indirect
216173
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
217174
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
218175
github.com/yuin/goldmark-emoji v1.0.6 // indirect
219-
go.mongodb.org/mongo-driver v1.17.4 // indirect
220-
go.opencensus.io v0.24.0 // indirect
176+
go.mongodb.org/mongo-driver v1.17.6 // indirect
221177
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
222-
go.opentelemetry.io/contrib/detectors/gcp v1.38.0 // indirect
223-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
224-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
225178
go.opentelemetry.io/otel v1.38.0 // indirect
226179
go.opentelemetry.io/otel/metric v1.38.0 // indirect
227-
go.opentelemetry.io/otel/sdk v1.38.0 // indirect
228-
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
229180
go.opentelemetry.io/otel/trace v1.38.0 // indirect
230-
go.uber.org/multierr v1.11.0 // indirect
231-
go.uber.org/zap v1.27.0 // indirect
232181
go.yaml.in/yaml/v3 v3.0.4 // indirect
233-
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect
234182
golang.org/x/mod v0.30.0 // indirect
235183
golang.org/x/net v0.47.0 // indirect
236-
golang.org/x/oauth2 v0.33.0 // indirect
237184
golang.org/x/sys v0.39.0 // indirect
238-
golang.org/x/time v0.12.0 // indirect
239185
golang.org/x/tools v0.39.0 // indirect
240-
google.golang.org/api v0.248.0 // indirect
241-
google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect
242186
google.golang.org/genproto/googleapis/api v0.0.0-20251022142026-3a174f9686a8 // indirect
243-
google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8 // indirect
244-
k8s.io/klog/v2 v2.130.1 // indirect
187+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251103181224-f26f9409b101 // indirect
245188
)

0 commit comments

Comments
 (0)