Skip to content

Commit 78891fc

Browse files
Merge branch 'trunk' into feature/pr-diff-exclude
2 parents ea83ca0 + 6e49747 commit 78891fc

File tree

331 files changed

+5277
-19530
lines changed

Some content is hidden

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

331 files changed

+5277
-19530
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ We accept pull requests for issues labelled `help wanted`. We encourage issues a
2424
## Building the project
2525

2626
Prerequisites:
27-
- Go 1.25+
27+
- Go 1.26+
2828

2929
Build with:
3030
* Unix-like systems: `make`

.github/ISSUE_TEMPLATE/feedback.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/licenses.tmpl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
# GitHub CLI dependencies
1+
GitHub CLI third-party dependencies
2+
====================================
23

3-
The following open source dependencies are used to build the [cli/cli][] GitHub CLI.
4+
The following open source dependencies are used to build the GitHub CLI.
45

5-
## Go Packages
6-
7-
Some packages may only be included on certain architectures or operating systems.
8-
9-
{{ range . }}
10-
- [{{.Name}}](https://pkg.go.dev/{{.Name}}) ([{{.LicenseName}}]({{.LicenseURL}}))
11-
{{- end }}
12-
13-
[cli/cli]: https://github.com/cli/cli
6+
{{ range . -}}
7+
{{.Name}} ({{.Version}}) - {{.LicenseName}} - {{.LicenseURL}}
8+
{{ end }}

.github/secret_scanning.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/bump-go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Bump Go
22
on:
33
schedule:
44
- cron: "0 3 * * *" # 3 AM UTC
5+
workflow_dispatch:
56
permissions:
67
contents: write
78
pull-requests: write

.github/workflows/deployment.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
go-version-file: 'go.mod'
5252
- name: Install GoReleaser
53-
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
53+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
5454
with:
5555
# The version is pinned not only for security purposes, but also to avoid breaking
5656
# our scripts, which rely on the specific file names generated by GoReleaser.
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
go run ./cmd/gen-docs --website --doc-path dist/manual
7272
tar -czvf dist/manual.tar.gz -C dist -- manual
73-
- uses: actions/upload-artifact@v6
73+
- uses: actions/upload-artifact@v7
7474
with:
7575
name: linux
7676
if-no-files-found: error
@@ -111,7 +111,7 @@ jobs:
111111
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$keychain_password" "$keychain"
112112
rm "$RUNNER_TEMP/cert.p12"
113113
- name: Install GoReleaser
114-
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
114+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
115115
with:
116116
# The version is pinned not only for security purposes, but also to avoid breaking
117117
# our scripts, which rely on the specific file names generated by GoReleaser.
@@ -150,7 +150,7 @@ jobs:
150150
run: |
151151
shopt -s failglob
152152
script/pkgmacos "$TAG_NAME"
153-
- uses: actions/upload-artifact@v6
153+
- uses: actions/upload-artifact@v7
154154
with:
155155
name: macos
156156
if-no-files-found: error
@@ -173,7 +173,7 @@ jobs:
173173
with:
174174
go-version-file: 'go.mod'
175175
- name: Install GoReleaser
176-
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
176+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
177177
with:
178178
# The version is pinned not only for security purposes, but also to avoid breaking
179179
# our scripts, which rely on the specific file names generated by GoReleaser.
@@ -263,7 +263,7 @@ jobs:
263263
Get-ChildItem -Path .\dist -Filter *.msi | ForEach-Object {
264264
.\script\sign.ps1 $_.FullName
265265
}
266-
- uses: actions/upload-artifact@v6
266+
- uses: actions/upload-artifact@v7
267267
with:
268268
name: windows
269269
if-no-files-found: error
@@ -281,7 +281,7 @@ jobs:
281281
- name: Checkout cli/cli
282282
uses: actions/checkout@v6
283283
- name: Merge built artifacts
284-
uses: actions/download-artifact@v7
284+
uses: actions/download-artifact@v8
285285
- name: Checkout documentation site
286286
uses: actions/checkout@v6
287287
with:
@@ -334,7 +334,7 @@ jobs:
334334
rpmsign --addsign dist/*.rpm
335335
- name: Attest release artifacts
336336
if: inputs.environment == 'production'
337-
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
337+
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
338338
with:
339339
subject-path: "dist/gh_*"
340340
create-storage-record: false # (default: true)

.github/workflows/feature-request-comment.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/issueauto.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
- go.mod
99
- go.sum
1010
- ".github/licenses.tmpl"
11-
- "script/licenses*"
11+
- "script/licenses"
1212
pull_request:
1313
paths:
1414
- "**.go"
1515
- go.mod
1616
- go.sum
1717
- ".github/licenses.tmpl"
18-
- "script/licenses*"
18+
- "script/licenses"
1919
permissions:
2020
contents: read
2121
jobs:
@@ -48,18 +48,18 @@ jobs:
4848
- name: golangci-lint
4949
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
5050
with:
51-
version: v2.6.0
51+
version: v2.11.0
5252

53+
# Verify that license generation succeeds for all release platforms (GOOS/GOARCH).
54+
# This catches issues like new dependencies with unrecognized licenses before release time.
55+
#
5356
# actions/setup-go does not setup the installed toolchain to be preferred over the system install,
5457
# which causes go-licenses to raise "Package ... does not have module info" errors.
5558
# For more information, https://github.com/google/go-licenses/issues/244#issuecomment-1885098633
56-
#
57-
# go-licenses has been pinned for automation use.
58-
- name: Check licenses
59+
- name: Verify license generation
5960
run: |
6061
export GOROOT=$(go env GOROOT)
6162
export PATH=${GOROOT}/bin:$PATH
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.
@@ -77,7 +77,7 @@ jobs:
7777
# `govulncheck` exits unsuccessfully if vulnerabilities are found, providing results in stdout.
7878
# See https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck#hdr-Exit_codes for more information on exit codes.
7979
#
80-
# On go1.25, To make `-mode binary` work we need to make sure the binary is built with `go build -buildvcs=false`
80+
# On go1.25+, To make `-mode binary` work we need to make sure the binary is built with `go build -buildvcs=false`
8181
# Since our builds do not use `-buildvcs=false`, we run in source mode here instead.
8282
- name: Check Go vulnerabilities
8383
run: |

.github/workflows/pr-help-wanted.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)