Skip to content

Commit 1c36686

Browse files
authored
Merge branch 'trunk' into 2722-fix-fork-remote-flag
2 parents 3f0044f + 0f5355e commit 1c36686

1,209 files changed

Lines changed: 5674 additions & 175523 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/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
Hi! Thanks for your interest in contributing to the GitHub CLI!
44

5-
We accept pull requests for bug fixes and features where we've discussed the approach in an issue and given the go-ahead for a community member to work on it. We'd also love to hear about ideas for new features as issues.
5+
We accept pull requests for issues labelled `help wanted`. We encourage issues and discussion posts for all other contributions.
66

77
### Please do:
88

99
* Check issues to verify that a [bug][bug issues] or [feature request][feature request issues] issue does not already exist for the same problem or feature
1010
* Open an issue if things aren't working as expected
11-
* Open an issue to propose a significant change
11+
* Open an issue to propose a change
1212
* Open an issue to propose a design for an issue labelled [`needs-design` and `help wanted`][needs design and help wanted], following the [proposing a design guidelines](#proposing-a-design) instructions below
1313
* Open an issue to propose a new community supported `gh` package with details about support and redistribution
1414
* Mention `@cli/code-reviewers` when an issue you want to work on does not have clear Acceptance Criteria
1515
* Open a pull request for any issue labelled [`help wanted`][hw] and [`good first issue`][gfi]
1616

17-
### Please _do not_:
17+
### Please _do NOT_:
1818

1919
* Open a pull request for issues without the `help wanted` label or explicit Acceptance Criteria
2020
* Expand pull request scope to include changes that are not described in the issue's Acceptance Criteria

.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: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,18 @@ jobs:
5050
with:
5151
go-version-file: 'go.mod'
5252
- name: Install GoReleaser
53-
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.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.
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 }}
@@ -64,7 +70,7 @@ jobs:
6470
run: |
6571
go run ./cmd/gen-docs --website --doc-path dist/manual
6672
tar -czvf dist/manual.tar.gz -C dist -- manual
67-
- uses: actions/upload-artifact@v5
73+
- uses: actions/upload-artifact@v7
6874
with:
6975
name: linux
7076
if-no-files-found: error
@@ -105,12 +111,18 @@ jobs:
105111
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$keychain_password" "$keychain"
106112
rm "$RUNNER_TEMP/cert.p12"
107113
- name: Install GoReleaser
108-
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
114+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
109115
with:
110116
# The version is pinned not only for security purposes, but also to avoid breaking
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 }}
@@ -138,7 +150,7 @@ jobs:
138150
run: |
139151
shopt -s failglob
140152
script/pkgmacos "$TAG_NAME"
141-
- uses: actions/upload-artifact@v5
153+
- uses: actions/upload-artifact@v7
142154
with:
143155
name: macos
144156
if-no-files-found: error
@@ -161,7 +173,7 @@ jobs:
161173
with:
162174
go-version-file: 'go.mod'
163175
- name: Install GoReleaser
164-
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
176+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
165177
with:
166178
# The version is pinned not only for security purposes, but also to avoid breaking
167179
# our scripts, which rely on the specific file names generated by GoReleaser.
@@ -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
@@ -244,7 +263,7 @@ jobs:
244263
Get-ChildItem -Path .\dist -Filter *.msi | ForEach-Object {
245264
.\script\sign.ps1 $_.FullName
246265
}
247-
- uses: actions/upload-artifact@v5
266+
- uses: actions/upload-artifact@v7
248267
with:
249268
name: windows
250269
if-no-files-found: error
@@ -262,7 +281,7 @@ jobs:
262281
- name: Checkout cli/cli
263282
uses: actions/checkout@v6
264283
- name: Merge built artifacts
265-
uses: actions/download-artifact@v6
284+
uses: actions/download-artifact@v8
266285
- name: Checkout documentation site
267286
uses: actions/checkout@v6
268287
with:
@@ -315,7 +334,7 @@ jobs:
315334
rpmsign --addsign dist/*.rpm
316335
- name: Attest release artifacts
317336
if: inputs.environment == 'production'
318-
uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0
337+
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
319338
with:
320339
subject-path: "dist/gh_*"
321340
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: 6 additions & 6 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:
@@ -50,16 +50,16 @@ jobs:
5050
with:
5151
version: v2.6.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@5348b744d0983d85713295ea08a20cca1654a45e # v2.0.1
6363
make licenses-check
6464
6565
# Discover vulnerabilities within Go standard libraries used to build GitHub CLI using govulncheck.

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

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

0 commit comments

Comments
 (0)