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

Cl#2 #1

Merged
merged 678 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
678 commits
Select commit Hold shift + click to select a range
3b1f06a
Ensure Acceptance defer failures are debuggable
williammartin Oct 14, 2024
5ad4a38
Support GH_ACCEPTANCE_SCRIPT
williammartin Oct 14, 2024
6970eb3
Acceptance test issue command
williammartin Oct 14, 2024
9d80f7c
Merge pull request #9756 from cli/wm/allow-single-script-targeting
jtmcg Oct 14, 2024
c1939e9
Merge pull request #9754 from cli/wm/acceptance-test-defer-fails
jtmcg Oct 14, 2024
9e00f1e
Resolve PR feedback
heaths Oct 14, 2024
7066bdb
Add comment to acceptance make target
williammartin Oct 15, 2024
c3ffdc9
implement base workflow list acceptance test
BagToad Oct 15, 2024
5f919bc
implement workflow enable/disable acceptance test
BagToad Oct 15, 2024
0b1d692
Create workflow-view.txtar
BagToad Oct 15, 2024
3737f10
Create workflow-run.txtar
BagToad Oct 15, 2024
446ffed
Create run-cancel.txtar
BagToad Oct 15, 2024
0259979
Merge pull request #9748 from cli/wm/add-acceptance-makefile
williammartin Oct 15, 2024
e37cf8b
Fix issue creation with metadata regex
williammartin Oct 15, 2024
a6974cc
Merge pull request #9757 from cli/wm/testscript-issues
andyfeller Oct 15, 2024
3a8417f
Add test coverage to places where IsEnterprise incorrectly covers Ten…
jtmcg Oct 14, 2024
44fdb33
Upgrade go-gh version to 2.11.0
jtmcg Oct 14, 2024
81591a0
Use go-gh/auth package for IsEnterprise, IsTenancy, and NormalizeHost…
jtmcg Oct 11, 2024
8109594
auth: Removed redundant ghauth.IsTenancy(host) check
jtmcg Oct 11, 2024
4df2e7b
Remove comment
jtmcg Oct 15, 2024
e1a39d8
Add ghe.com to tests describing ghec data residency
jtmcg Oct 15, 2024
0bd4e03
Remove unnecessary code branches
jtmcg Oct 15, 2024
ddf90c7
Remove IsTenancy and relevant tests from gists as they are unsupported
jtmcg Oct 15, 2024
2d0b742
Merge branch 'trunk' into jtmcg/577
jtmcg Oct 15, 2024
3f080e0
Create run-delete.txtar
BagToad Oct 15, 2024
3d3e061
Create run-download.txtar
BagToad Oct 15, 2024
745863b
Create run-rerun.txtar
BagToad Oct 15, 2024
682b75f
Create run-view.txtar
BagToad Oct 15, 2024
924d81a
Create cache-list-delete.txtar
BagToad Oct 15, 2024
8d62631
Update run-rerun.txtar
BagToad Oct 15, 2024
b98c840
Merge pull request #9755 from cli/jtmcg/577
jtmcg Oct 15, 2024
4ce8236
sleep 10s before checking for workflow run
BagToad Oct 15, 2024
446f660
Add filtered content output to docs
heaths Oct 15, 2024
c1897f3
Merge branch 'trunk' into jtmcg/9698
jtmcg Oct 15, 2024
7aef6ec
Merge pull request #9728 from heaths/issue9704
jtmcg Oct 15, 2024
fdfd4b3
Rewrite a sentence in CONTRIBUTING.md
muzimuzhi Oct 16, 2024
8b0b0ce
Merge pull request #9772 from muzimuzhi/docs/reduce-dup
BagToad Oct 16, 2024
86b4bb9
Include startedAt, completedAt in run steps data
andyfeller Oct 16, 2024
8f567e2
Watch for run to end for cancel Acceptance test
williammartin Oct 17, 2024
93081c9
Use regex assert for enable disable workflow Acceptance test
williammartin Oct 17, 2024
0f62ec2
Adjust sleeps to echos in Acceptance workflows
williammartin Oct 17, 2024
07ea43a
Remove empty stdout checks
williammartin Oct 17, 2024
dc3e805
Remove unnecesary mkdir from download Acceptance test
williammartin Oct 17, 2024
f21ac8f
Merge pull request #9766 from cli/kw/github-cli-585-add-acceptance-te…
williammartin Oct 17, 2024
06c20f3
Implement basic API acceptance test
BagToad Oct 16, 2024
d2559f0
Merge pull request #9770 from cli/kw/github-cli-591-add-acceptance-te…
williammartin Oct 17, 2024
a009933
Add acceptance tests for `release` commands
BagToad Oct 16, 2024
473faea
Rename test files
BagToad Oct 17, 2024
24fc2db
Remove stdout assertion from release
williammartin Oct 17, 2024
b179240
Add testscripts for `gh secret`, helper cmds
andyfeller Oct 17, 2024
5bbe69b
Update secret note about potential failure
andyfeller Oct 17, 2024
2850835
Merge pull request #9771 from cli/kw/github-cli-586-add-acceptance-te…
williammartin Oct 17, 2024
7c534e6
Refactor env2upper, env2lower; add docs
andyfeller Oct 17, 2024
e91052d
Fix typo in custom command doc
andyfeller Oct 17, 2024
6cb25c8
Merge pull request #9752 from cli/dependabot/go_modules/github.com/ga…
andyfeller Oct 17, 2024
c1ccd81
Merge pull request #9774 from cli/andyfeller/cli-9769-run-job-step-da…
andyfeller Oct 17, 2024
e335113
Minor polish / consistency
andyfeller Oct 17, 2024
b4be8cb
Add acceptance tests for `gh variable`
andyfeller Oct 17, 2024
e8842f8
Add missing test to trigger acceptance tests
andyfeller Oct 17, 2024
13ab027
Clean up Title Survey empty title message code
jtmcg Oct 17, 2024
14acbe0
Remove . from test case for TestTitleSurvey
jtmcg Oct 17, 2024
1313612
Merge pull request #9701 from cli/jtmcg/9698
jtmcg Oct 17, 2024
1571a11
Merge branch 'trunk' into andyfeller/testscripts-secret
andyfeller Oct 18, 2024
b361cf4
Implement acceptance tests for search commands
BagToad Oct 18, 2024
1842867
Added test function for repos and repo-create test
jtmcg Oct 16, 2024
83cbdc4
Added acceptance test for repo-delete
jtmcg Oct 16, 2024
60e20ee
Add acceptance test for repo-clone
jtmcg Oct 17, 2024
0c632d7
Acceptance testing for repo-archive and repo-unarchive
jtmcg Oct 17, 2024
fb6f773
Add acceptance tests for repo-list and repo-rename
jtmcg Oct 17, 2024
c572edb
Add acceptance test for repo-edit
jtmcg Oct 17, 2024
7508131
Add acceptance test for repo-set-default
jtmcg Oct 17, 2024
96fa853
Add acceptance tests for repo-fork and repo-sync
jtmcg Oct 17, 2024
95ed11d
Add acceptance tests for repo deploy-key add/list/delete
jtmcg Oct 17, 2024
e7549c9
Cleanup some inconsistencies and improve collapse some functionality
jtmcg Oct 17, 2024
a5a7753
Remove unnecessary gh auth setup-git steps
jtmcg Oct 18, 2024
ee0d9ab
Wrap boolean strings in '' so it is clear they are strings
jtmcg Oct 18, 2024
25f2956
Replace LICENSE
jtmcg Oct 18, 2024
6c3ad50
Remove unnecessary flags from repo-delete testscript
jtmcg Oct 18, 2024
3f4a2ae
Rename acceptance test directory from repos to repo
jtmcg Oct 18, 2024
ba324d8
Wrap true in '' in repo-fork-sync
jtmcg Oct 18, 2024
92ff87c
Merge pull request #9783 from cli/jtmcg/testscripts-repo
jtmcg Oct 18, 2024
f4f161c
Refactor `gh secret` testscript
andyfeller Oct 18, 2024
b33e2f9
feat: add ArchivedAt field to Repository struct
tsukasaI Oct 19, 2024
cce3986
Merge branch 'trunk' into feature/add-archived-timestamp
tsukasaI Oct 19, 2024
6923fb5
add validation for local ext install
BagToad Oct 20, 2024
664e09f
wip: added test that fails in the absence of a backoff.
phillmv Oct 21, 2024
acf62da
Address @williammartin PR feedback
andyfeller Oct 21, 2024
efc1c97
Added constant backoff retry to getAttestations.
phillmv Oct 21, 2024
1736de2
Fix single quote not expanding vars
BagToad Oct 21, 2024
e39a78e
Merge branch 'trunk' into kw/github-cli-590-add-search-acceptance-tests
BagToad Oct 21, 2024
fafda48
added test for verifying we do 3 retries when fetching attestations.
phillmv Oct 21, 2024
d2a9d1c
Merge pull request #9786 from cli/kw/github-cli-590-add-search-accept…
BagToad Oct 21, 2024
e744667
Minor tweaks, added backoff to getTrustDomain
phillmv Oct 21, 2024
b3c0c39
Merge branch 'trunk' into andyfeller/testscripts-secret
andyfeller Oct 21, 2024
a8b3f05
Merge branch 'trunk' into phillmv/fail-verification-if-no-attestations
phillmv Oct 21, 2024
857854d
Merge pull request #9742 from cli/phillmv/fail-verification-if-no-att…
phillmv Oct 21, 2024
de4c05f
Linting: now that mockDataGenerator has an embedded mock, we ought to…
phillmv Oct 21, 2024
cc32f33
Refactor to remove code duplication
BagToad Oct 21, 2024
35aa852
Fix tests for invalid extension name
BagToad Oct 21, 2024
daec7a0
Check extOwner for no value instead
BagToad Oct 21, 2024
1886d1b
Merge pull request #9782 from cli/andyfeller/testscripts-secret
andyfeller Oct 21, 2024
fa03013
Merge branch 'trunk' into andyfeller/testscripts-variable
andyfeller Oct 21, 2024
6dab689
Merge pull request #9794 from cli/kw/cli-9699-validate-local-extensio…
BagToad Oct 21, 2024
6192ac7
Update variable testscripts based on secret
andyfeller Oct 21, 2024
665e814
Setup acceptance testing for auth and tests for auth-token and auth-s…
jtmcg Oct 18, 2024
52daa9c
Add --token flag to `gh auth login` to accept a PAT as a flag
jtmcg Oct 18, 2024
aaf4c4e
Clean up auth-login-logout acceptance test with native functionality
jtmcg Oct 21, 2024
a923e33
Test json flags for repo view and list
williammartin Oct 22, 2024
ad7c29d
Merge pull request #9790 from tsukasaI/feature/add-archived-timestamp
williammartin Oct 22, 2024
34f1b50
Merge pull request #9784 from cli/andyfeller/testscripts-variable
andyfeller Oct 22, 2024
04add8d
Use new GitHub previews terminology in attestation
BagToad Oct 22, 2024
abb2772
Use new GitHub preview terms in working-with-us.md
BagToad Oct 22, 2024
fd56fec
Merge pull request #9800 from cli/kw/update-docs-with-github-preview-…
BagToad Oct 22, 2024
e390874
Merge pull request #9799 from cli/kw/attestation-use-new-github-previ…
BagToad Oct 22, 2024
2433475
Use forked testscript for token redaction
williammartin Oct 23, 2024
afa4272
Merge pull request #9797 from cli/phillmv/retry-getting-attestations
phillmv Oct 23, 2024
0614d85
Add acceptance tests for auth-setup-git and formattedStringToEnv help…
jtmcg Oct 21, 2024
59aedc4
Remove comment from gh auth logout
jtmcg Oct 21, 2024
15d86bb
Clarify `gh` is available for GitHub Enterprise Cloud
BagToad Oct 23, 2024
8513824
Merge pull request #9805 from cli/kw/clarify-gh-is-available-for-GHEC
andyfeller Oct 23, 2024
2b480da
Address PR feedback
jtmcg Oct 23, 2024
787a243
Update go-internal to redact more token types in Acceptance tests
williammartin Oct 24, 2024
fc4d7e4
Merge pull request #9804 from cli/wm/redact-tokens-from-acceptance
williammartin Oct 24, 2024
f27cddc
Add acceptance test for gpg-key
BagToad Oct 24, 2024
4100992
Add Acceptance test for label command
williammartin Oct 24, 2024
ff9b0a1
Merge pull request #9811 from cli/wm-kw/github-cli-636-add-testscript…
williammartin Oct 24, 2024
76e6fbb
Add SSH Key Acceptance test
williammartin Oct 24, 2024
d4c7000
Adjust environment help for host and tokens (#9809)
williammartin Oct 24, 2024
2f849f0
Add acceptance tests for org command
BagToad Oct 24, 2024
f72a82d
Refactor gpg-key delete to align with ssh-key delete
BagToad Oct 24, 2024
0880dc4
Merge pull request #9812 from cli/wm-kw/ssh-key-and-org-testscripts.t…
williammartin Oct 24, 2024
366aea9
Note token redaction in Acceptance test README
williammartin Oct 24, 2024
2a2adfe
Merge pull request #9787 from cli/jtmcg/testscripts-auth
williammartin Oct 24, 2024
44ee177
Merge pull request #9813 from cli/wm/update-acceptance-test-redaction
BagToad Oct 24, 2024
31e8a87
Alphabetize test functions
jtmcg Oct 24, 2024
4d57c79
set provenance predicate type as default for predicate-type flag
malancas Oct 24, 2024
8b5c538
Add TestProject to acceptance_test.go
jtmcg Oct 24, 2024
7148304
Add acceptance test for project-create and project-delete
jtmcg Oct 24, 2024
30d9fc5
Update testscript to use hard fork
williammartin Oct 25, 2024
7a5dc50
Modify script to use the project number returned by the api upon crea…
jtmcg Oct 25, 2024
a381ca5
Merge pull request #9821 from cli/hard-fork-go-internal
williammartin Oct 25, 2024
c552224
Merge branch 'trunk' into verify-provenance-predicate-by-default
malancas Oct 25, 2024
e8013c0
update documentation to indclude predicate-type information
malancas Oct 25, 2024
84f3265
Merge branch 'verify-provenance-predicate-by-default' of github.com:m…
malancas Oct 25, 2024
fa65364
predicate-type is no longer empty
malancas Oct 25, 2024
28fa42a
message formatting
malancas Oct 25, 2024
cef335c
update tests to include predicate type
malancas Oct 25, 2024
9ddaf13
add predicate type to integration tests
malancas Oct 25, 2024
f35c123
Merge pull request #9816 from cli/jtmcg/testscripts-project
williammartin Oct 28, 2024
c27677b
Add comprehensive testscript for `gh ruleset`
andyfeller Oct 24, 2024
6dc86e5
Rename testscript for consistency
andyfeller Oct 25, 2024
7066cde
Merge pull request #9815 from cli/andyfeller/testscripts-ruleset
williammartin Oct 28, 2024
ed24477
Add comprehensive testscript for gh ext commandset
andyfeller Oct 24, 2024
911f070
Skip extension testscript if bash isn't available
andyfeller Oct 25, 2024
37da12a
Rename similar to other coarse commandset tests
andyfeller Oct 25, 2024
14d339d
Merge pull request #9810 from cli/andyfeller/testscript-extension
williammartin Oct 28, 2024
a820457
clean up skipped online tests
malancas Oct 28, 2024
ce5bde4
simplify signer workflow validation tests
malancas Oct 28, 2024
f8b0f5e
clean up test
malancas Oct 28, 2024
5028560
table tests
malancas Oct 28, 2024
4ec696d
create common test fixture, organize tests
malancas Oct 28, 2024
8a8f224
fix test
malancas Oct 28, 2024
f8f3502
doc updates
malancas Oct 28, 2024
7598c4a
organize
malancas Oct 28, 2024
a3f353d
Set `dnf5` commands as default
its-miroma Oct 29, 2024
efa6faf
Update pkg/cmd/attestation/verification/attestation.go
malancas Oct 29, 2024
7bfddec
fix references
malancas Oct 29, 2024
15d7e33
update references
malancas Oct 29, 2024
15b2db9
Require visibility confirmation in `gh repo edit`
andyfeller Oct 29, 2024
2714508
Update pkg/cmd/attestation/verify/verify.go
malancas Oct 29, 2024
384057c
bold all flags in docs
malancas Oct 29, 2024
704de0c
start building a separate policy struct
malancas Oct 29, 2024
e5b2b09
move policy functions into methods
malancas Oct 29, 2024
e16b69b
cert extension funcs are now policy methods
malancas Oct 29, 2024
41c3ba5
drop sigstore instance for now
malancas Oct 30, 2024
3f5fc85
Assert stderr for gh repo edit visibility tests
andyfeller Oct 30, 2024
3378b54
simplify if else logic
malancas Oct 30, 2024
3b4301f
Merge pull request #9845 from cli/andyfeller/9807-repo-edit-visibilit…
andyfeller Oct 30, 2024
bb51360
Merge pull request #9838 from malancas/attestation-clean-up-tests
malancas Oct 30, 2024
b44c9d3
undo policy method changes
malancas Oct 30, 2024
93c78a2
use sigstore specific err
malancas Oct 30, 2024
fa2574c
Merge remote-tracking branch 'upstream/trunk' into attestation-refact…
malancas Oct 30, 2024
4fa5f0c
update extensions test
malancas Oct 30, 2024
1652051
Merge pull request #9825 from malancas/verify-provenance-predicate-by…
malancas Oct 30, 2024
8b02c43
add tests for newEnforcementCriteria
malancas Oct 30, 2024
84c823c
clean up extension verification tests
malancas Oct 30, 2024
bf4f04f
Merge branch 'trunk' into attestation-refactor-policy
malancas Oct 30, 2024
318bd90
update extensions tests
malancas Oct 30, 2024
bb0dcd9
fix wrong field settings
malancas Oct 30, 2024
61b60e9
fix runner setting
malancas Oct 31, 2024
9cdeb31
reorganize funcs
malancas Oct 31, 2024
30066b0
Merge pull request #9844 from its-miroma/dnf5
BagToad Oct 31, 2024
01f63c5
clean up unneeded struct
malancas Oct 31, 2024
97262d8
add test case for monotonic verification success
malancas Oct 31, 2024
d29a4a7
update extension verification logic
malancas Oct 31, 2024
3e90628
add test for sigstore monotonic verification
malancas Oct 31, 2024
26e0493
split out individual sigstore verification
malancas Oct 31, 2024
56731c9
remove unneeded result handling struct
malancas Oct 31, 2024
4bd4633
return the last verification error for now
malancas Oct 31, 2024
23374d8
undo sigstore verify result handling changes for now
malancas Oct 31, 2024
6f4b5dd
remove artifact from EnforcementCriteria
malancas Oct 31, 2024
7948ce4
rename function
malancas Oct 31, 2024
e6d0a06
Update pkg/cmd/attestation/verification/extensions.go
malancas Oct 31, 2024
a81cb73
update VerifyCertExtensions args
malancas Oct 31, 2024
9f3d009
keep comment
malancas Oct 31, 2024
8336f79
use sigstore-go certificate.Summary type for criteria
malancas Oct 31, 2024
50cda0d
add Valid method for EnforcementCriteria
malancas Oct 31, 2024
a7a70fc
check for SAN and SANRegex
malancas Oct 31, 2024
0fb82a6
comments
malancas Oct 31, 2024
815fcb7
Bump github.com/creack/pty from 1.1.23 to 1.1.24
dependabot[bot] Nov 1, 2024
a5eca00
remove emtpy string checks
malancas Nov 1, 2024
a6d15b4
update OIDC issuer logic
malancas Nov 1, 2024
bb1584b
comment
malancas Nov 1, 2024
43810a5
use predicate type stored in enforcementCriteria
malancas Nov 1, 2024
91967cc
Update pkg/cmd/attestation/verify/verify.go
malancas Nov 1, 2024
bb1a6f2
Merge branch 'cli:trunk' into trunk
andyfeller Nov 2, 2024
47d77bd
Add version checking when executing extensions
Nov 2, 2024
3281bd4
simplify logic, add comments
malancas Nov 4, 2024
b9c9f0a
move comment
malancas Nov 4, 2024
1c4c8e5
Fix verbiage for deleting workflow runs
akx Nov 4, 2024
b4c221d
Create the automatic key when specified with -i
cmbrose Nov 5, 2024
fe5afb1
Merge pull request #9876 from akx/delete-workflow-run-copy
jtmcg Nov 5, 2024
a569d10
Export empty results for cache list
williammartin Nov 6, 2024
f608221
Merge pull request #9862 from cli/dependabot/go_modules/github.com/cr…
williammartin Nov 6, 2024
2318fde
Bump actions/attest-build-provenance from 1.4.3 to 1.4.4
dependabot[bot] Nov 6, 2024
446a0d5
Merge pull request #9848 from malancas/attestation-refactor-policy
malancas Nov 6, 2024
f376ac1
Merge branch 'trunk' into simplify-sigstore-verify-result-handling
malancas Nov 6, 2024
ffc4991
Merge branch 'trunk' into verify-attestation-monotonic-tests
malancas Nov 6, 2024
940560a
Fix ssh directory
cmbrose Nov 6, 2024
2f47d1c
Merge pull request #9877 from malancas/simplify-sigstore-verify-resul…
malancas Nov 6, 2024
eae3b5b
Merge branch 'trunk' into verify-attestation-monotonic-tests
malancas Nov 6, 2024
b65c942
update verification slice building
malancas Nov 6, 2024
0665fb4
comments
malancas Nov 6, 2024
0f85e4e
Merge pull request #9883 from cli/9882-gh-cache-list-json-should-retu…
williammartin Nov 6, 2024
509a181
Remove unimplemented tests
cmbrose Nov 6, 2024
ef89997
Merge pull request #9884 from cli/dependabot/github_actions/actions/a…
jtmcg Nov 6, 2024
2435f69
Minor nit suggestion
andyfeller Nov 6, 2024
e356c69
Merge pull request #9881 from cli/cmbrose/cs-config-autokey
andyfeller Nov 6, 2024
a780b48
fix: ignore template flag
nilvng Nov 2, 2024
874fa7a
feat: add test
nilvng Nov 2, 2024
2eaab56
chore: tidy up
nilvng Nov 6, 2024
667f90a
Merge branch 'trunk' into nil/fix-7804
jtmcg Nov 6, 2024
215e4f4
Merge pull request #9863 from nilvng/nil/fix-7804
jtmcg Nov 6, 2024
ddf7287
Test extension command update behaviors
andyfeller Nov 7, 2024
e629443
Delete .github/licenses.tmpl
andyfeller Nov 7, 2024
54c0739
Delete .github/workflows/licenses.yml
andyfeller Nov 7, 2024
6d4c74b
Merge pull request #9856 from malancas/verify-attestation-monotonic-t…
malancas Nov 7, 2024
3ec657d
Enhance extension upgrade tests for URL
andyfeller Nov 7, 2024
9b9e654
Merge pull request #9866 from andyfeller/andyfeller/cli-cli-8183
jtmcg Nov 7, 2024
f9c648b
DER/cli
derockspace Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ We accept pull requests for bug fixes and features where we've discussed the app

Please do:

* Check existing issues to verify that the [bug][bug issues] or [feature request][feature request issues] has not already been submitted.
* 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.
* Open an issue if things aren't working as expected.
* Open an issue to propose a significant change.
* 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.
* Open a pull request to fix a bug.
* Open a pull request to fix documentation about a command.
* Open a pull request for any issue labelled [`help wanted`][hw] or [`good first issue`][gfi].
Expand Down Expand Up @@ -52,7 +53,21 @@ We generate manual pages from source on every release. You do not need to submit

## Design guidelines

You may reference the [CLI Design System][] when suggesting features, and are welcome to use our [Google Docs Template][] to suggest designs.
### Proposing a design

You may propose a design to solve an open bug or feature request issue that has both [the `needs-design` and `help-wanted` labels][needs design and help wanted].

To propose a design:

- Open a new issue using the [design proposal issue template](./ISSUE_TEMPLATE/submit-a-design-proposal.md).
- Include a link to the issue that the design is for.
- Describe the design you are proposing to resolve the issue, leveraging the [CLI Design System][].
- Mock up the design you are proposing using our [Google Docs Template][] or code blocks.
- Mock ups should cleary illustrate the command(s) being run and the expected output(s).

### (core team only) Revewing a design

A member of the core team will [triage](../docs/triage.md) the design proposal. Once a member of the core team has reviewed the design, they may add the [`help wanted`][hw] label to the issue, so a PR can be opened to provide the implementation.

## Resources

Expand All @@ -62,6 +77,7 @@ You may reference the [CLI Design System][] when suggesting features, and are we


[bug issues]: https://github.com/cli/cli/issues?q=is%3Aopen+is%3Aissue+label%3Abug
[needs design and help wanted]: https://github.com/cli/cli/issues?q=state%3Aclosed%20is%3Aissue%20label%3Aneeds-design%20label%3A%22help%20wanted%22
[feature request issues]: https://github.com/cli/cli/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement
[hw]: https://github.com/cli/cli/labels/help%20wanted
[gfi]: https://github.com/cli/cli/labels/good%20first%20issue
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ A clear and concise description of what you expected to happen and what actually
### Logs

Paste the activity from your command line. Redact if needed.

<!-- Note: Set `GH_DEBUG=true` for verbose logs or `GH_DEBUG=api` for verbose logs with HTTP traffic details. -->
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/submit-a-design-proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: "🎨 Submit a design proposal"
about: Submit a design to resolve an open issue that has both `needs-design` and `help-wanted` labels
title: ''
labels: enhancement
assignees: ''

---

<!-- See [CONTRIBUTING.md](../CONTRIBUTING.md#proposing-a-design) for more information.-->

### Link to issue for design submission

<!--
Provide a link to the issue this design is for.
All design submissions must be linked to an open issue that
has both the `needs-design` and `help-wanted` labels.
-->

### Proposed Design

<!--
Describe the design you are proposing to resolve the issue.
All CLI designs must adhere to the [Primer CLI design reference](https://primer.style/cli/).
-->

### Mockup

<!--
Provide a mockup of the design you are proposing. All mockups should clearly illustrate the command(s) being run and the expected output(s).
When color and formatting are important, consider using our [CLI design Google Docs Template](https://docs.google.com/document/d/1JIRErIUuJ6fTgabiFYfCH3x91pyHuytbfa0QLnTfXKM/edit#heading=h.or54sa47ylpg).
Code blocks can also be used to submit a design mockup - remember to include the command(s) being run. Example:
```shell
$ gh issue list --json title -L 5
[
{
"title": "`gh pr checks <pr> --required` should not fail when there are no required checks"
},
{
"title": "gh pr view commits should include commit description"
},
{
"title": "Adapt the color of the device code to the color used by the terminal"
},
{
"title": "`gh pr create` does not default to fork when user has write access to upstream"
},
{
"title": "First party discussions support"
}
]
```
-->
5 changes: 4 additions & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ GitHub takes the security of our software products and services seriously, inclu

If you believe you have found a security vulnerability in GitHub CLI, you can report it to us in one of two ways:

* Report it to this repository directly using [private vulnerability reporting][]. Such reports are not eligible for a bounty reward.
* Report it to this repository directly using [private vulnerability reporting][].
* Include a description of your investigation of the GitHub CLI's codebase and why you believe an exploit is possible.
* POCs and links to code are greatly encouraged.
* Such reports are not eligible for a bounty reward.

* Submit the report through [HackerOne][] to be eligible for a bounty reward.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ jobs:
rpmsign --addsign dist/*.rpm
- name: Attest release artifacts
if: inputs.environment == 'production'
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
with:
subject-path: "dist/gh_*"
- name: Run createrepo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
go mod verify
go mod download

LINT_VERSION=1.54.1
LINT_VERSION=1.59.1
curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \
tar xz --strip-components 1 --wildcards \*/golangci-lint
mkdir -p bin && mv golangci-lint bin/
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file
# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run
# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events
# to the "trunk" branch, `terraform apply` will be executed.
#
# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform
#
# To use this workflow, you will need to complete the following setup steps.
#
# 1. Create a `main.tf` file in the root of this repository with the `remote` backend and one or more resources defined.
# Example `main.tf`:
# # The configuration for the `remote` backend.
# terraform {
# backend "remote" {
# # The name of your Terraform Cloud organization.
# organization = "example-organization"
#
# # The name of the Terraform Cloud workspace to store Terraform state files in.
# workspaces {
# name = "example-workspace"
# }
# }
# }
#
# # An example resource that does nothing.
# resource "null_resource" "example" {
# triggers = {
# value = "A example resource that does nothing!"
# }
# }
#
#
# 2. Generate a Terraform Cloud user API token and store it as a GitHub secret (e.g. TF_API_TOKEN) on this repository.
# Documentation:
# - https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html
# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
#
# 3. Reference the GitHub secret in step using the `hashicorp/setup-terraform` GitHub Action.
# Example:
# - name: Setup Terraform
# uses: hashicorp/setup-terraform@v1
# with:
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

name: 'Terraform'

on:
push:
branches: [ "trunk" ]
pull_request:

permissions:
contents: read

jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
environment: production

# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4

# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform fmt -check

# Generates an execution plan for Terraform
- name: Terraform Plan
run: terraform plan -input=false

# On push to "trunk", build or change infrastructure according to Terraform configuration files
# Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks
- name: Terraform Apply
if: github.ref == 'refs/heads/"trunk"' && github.event_name == 'push'
run: terraform apply -auto-approve -input=false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
# vim
*.swp

# Emacs
*~

vendor/
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ completions: bin/gh$(EXE)
bin/gh$(EXE) completion -s fish > ./share/fish/vendor_completions.d/gh.fish
bin/gh$(EXE) completion -s zsh > ./share/zsh/site-functions/_gh

# just a convenience task around `go test`
# just convenience tasks around `go test`
.PHONY: test
test:
go test ./...

# For more information, see https://github.com/cli/cli/blob/trunk/acceptance/README.md
.PHONY: acceptance
acceptance:
go test -tags acceptance ./acceptance

## Site-related tasks are exclusively intended for use by the GitHub CLI team and for our release automation.

site:
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

![screenshot of gh pr status](https://user-images.githubusercontent.com/98482/84171218-327e7a80-aa40-11ea-8cd1-5177fc2d0e72.png)

GitHub CLI is supported for users on GitHub.com and GitHub Enterprise Server 2.20+ with support for macOS, Windows, and Linux.
GitHub CLI is supported for users on GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+ with support for macOS, Windows, and Linux.

## Documentation

Expand Down Expand Up @@ -60,6 +60,14 @@ Additional Conda installation options available on the [gh-feedstock page](https

For more information about the Webi installer see [its homepage](https://webinstall.dev/).

#### Flox

| Install: | Upgrade: |
| ----------------- | ----------------------- |
| `flox install gh` | `flox upgrade toplevel` |

For more information about Flox, see [its homepage](https://flox.dev)

### Linux & BSD

`gh` is available via:
Expand Down
Loading
Loading