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

Bump golang.org/x/sys from 0.0.0-20210601080250-7ecdf8ef093b to 0.1.0 #2

Open
wants to merge 2,300 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2300 commits
Select commit Hold shift + click to select a range
14fd15d
Merge pull request #6646 from cli/pr-expose-review-commit
mislav Nov 22, 2022
799aff1
Document installing GitHub CLI in Codespaces
mislav Nov 22, 2022
590dc84
Merge pull request #6653 from cli/devcontainer-docs
mislav Nov 23, 2022
3017168
Merge pull request #6632 from luanzeba/gh_release_verify_tag
mislav Nov 28, 2022
91445d2
Merge remote-tracking branch 'origin/trunk' into pr-prompter
Dec 5, 2022
a22b7ca
Merge pull request #6451 from cli/pr-prompter
Dec 5, 2022
84a15d0
Merge remote-tracking branch 'origin/trunk' into add-more-author-info…
Dec 7, 2022
b37e29e
fix test
Dec 7, 2022
3377963
Exclude the current user from reviewers when creating pr (#6464)
nsmag Dec 8, 2022
0636042
Prompt for owner when interactively creating repos (#6578)
twelvelabs Dec 8, 2022
57f5bd8
Add support to exclude pre-releases from release list (#6625)
owenvoke Dec 8, 2022
23913ac
Show version diff when updating a single extension (#6647)
despreston Dec 8, 2022
1cb62b1
Use new domain for forwarded ports
jshorty Dec 8, 2022
25209ad
Add `--allow-update-branch` to the `repo edit` command
browniebroke Dec 8, 2022
c91c2d4
export is_bot in issue/pr search
Dec 8, 2022
acaebe8
export is_bot from issue list
Dec 8, 2022
4fd56ac
Merge pull request #5049 from hirasawayuki/add-more-author-infomation
Dec 8, 2022
eadc8e8
Add `isDraft` to `search prs` json options, matching `pr view` (#6704)
mgabeler-lee-6rs Dec 9, 2022
c21408f
Merge pull request #6705 from cli/jshorty/new-pfs-domain
jshorty Dec 9, 2022
6507d35
port release command to prompter
Dec 8, 2022
f57249f
docs: Update installation instructions for WinGet (#6716)
vegerot Dec 12, 2022
ba4d504
Update to Go 1.19
mislav Dec 12, 2022
c9c39a6
Bump goreleaser
mislav Dec 12, 2022
6dbe7e6
Linter fixes (#6722)
samcoe Dec 12, 2022
487990b
bump safeexec for 1.19 fix
mislav Dec 12, 2022
d273005
Merge remote-tracking branch 'origin' into go-1.19-upgrade
mislav Dec 12, 2022
684a4c5
bump golangci-lint
mislav Dec 12, 2022
e4f5545
Go 1.19: fix comment formatting for moq-generated mocks
mislav Dec 12, 2022
ee4afb2
Merge pull request #6723 from cli/go-1.19-upgrade
mislav Dec 12, 2022
67e5bae
Merge pull request #6711 from cli/release-prompter
Dec 12, 2022
8e0b4ef
Use -R for --repo shorthand and deprecate -r
cmbrose Dec 12, 2022
57c53e6
linter
cmbrose Dec 12, 2022
56006ee
Flags instead of PersistentFlag
cmbrose Dec 13, 2022
bc9ea4b
Bump goreleaser/goreleaser-action from 3 to 4
dependabot[bot] Dec 13, 2022
7e67580
Merge pull request #6727 from cli/dependabot/github_actions/gorelease…
mislav Dec 13, 2022
dd8c5c9
Fix clobbering old files in release download (#6694)
mislav Dec 13, 2022
7e3e2d9
Merge remote-tracking branch 'origin/trunk' into base-cmd
Dec 13, 2022
76c5893
tests pass
Dec 13, 2022
6f1d149
Merge pull request #6725 from cli/cmbrose/rename-repo-shorthand
cmbrose Dec 13, 2022
2090e11
tweak UX and switch to prompter
Dec 13, 2022
230d89b
add more to usage
Dec 13, 2022
e86b3ea
Change alias list output format to YAML (#6603)
ptforness Dec 13, 2022
5d8d032
move help to its own window
Nov 8, 2022
2f42196
these were bad
Nov 8, 2022
69a1f0a
use Pages to render help
Dec 13, 2022
d42744f
freeze input when help active
Dec 13, 2022
e58bf21
Fix API client code docs
mislav Nov 28, 2022
36ffbe1
Improve looking up draft releases by tag name
mislav Nov 28, 2022
cbeed67
release create: clean up leftover draft release on upload/publish fai…
mislav Dec 14, 2022
8cb312a
Fix release assets upload retry logic
mislav Dec 14, 2022
0a82a57
WIP on single column support
Dec 14, 2022
941dc26
Update git/client.go
Dec 15, 2022
41bdaa4
tweak wording
Dec 15, 2022
db4de60
rename command and fix tests
Dec 15, 2022
6532397
use factory git client
Dec 15, 2022
5461d15
final bit of feedback
Dec 15, 2022
59812d4
Merge pull request #4859 from bchadwic/base-cmd
Dec 15, 2022
f5d19b8
error instead of prompt when no base repo + fixes
Dec 15, 2022
5a6b4ce
Merge remote-tracking branch 'origin/trunk' into gh-issue-lock
Dec 16, 2022
b52d452
wip: tweak output, update to Prompter, start on tests
Dec 16, 2022
7caf7da
Merge pull request #6667 from cli/release-galore
mislav Dec 19, 2022
6d93849
Merge pull request #6738 from cli/default-repo-error
mislav Dec 19, 2022
4ade907
Allow setting codespace display name during create (#6739)
despreston Dec 19, 2022
4c28e32
WIP on adding tests, add prompt, tweak things
Dec 20, 2022
95419f9
further WIP
Dec 20, 2022
a55dd65
Merge remote-tracking branch 'origin' into cobra-update
mislav Dec 20, 2022
2ede673
Merge pull request #6706 from browniebroke/feat/edit-repo/allow-updat…
mislav Dec 20, 2022
607a087
Split issue commands into "General" vs. "Targeted"
mislav Dec 20, 2022
cee5e6e
WIP on tests
Dec 20, 2022
bb95849
WIP tests
Dec 20, 2022
a1fe708
todos
Dec 20, 2022
8d9b47e
stub out rest of tests
Dec 20, 2022
6fce78e
WIP all but relocking
Dec 20, 2022
c3cceae
finish tests
Dec 20, 2022
1f85a92
Merge pull request #5333 from chemotaxis/gh-issue-lock
Dec 21, 2022
fcd86c0
Merge remote-tracking branch 'origin' into cobra-update
mislav Dec 21, 2022
f8f206e
Group PR, release, and repo subcommands
mislav Dec 21, 2022
c5ce685
Merge pull request #6589 from cli/cobra-update
mislav Dec 21, 2022
c5c2f9c
Supported passing nested JSON arrays/objects to api command via field…
mislav Dec 22, 2022
6a55324
Avoid sending empty JSON body when no params to api command (#6775)
mislav Dec 22, 2022
ea4b410
downgrade ubuntu to fix osslsigncode
mislav Dec 22, 2022
7ffa87f
Merge pull request #6776 from cli/goreleaser-fix
mislav Dec 22, 2022
8d82a96
Fix fetching issue/PR comments
mislav Dec 23, 2022
6618baa
Merge pull request #6779 from cli/fix-comments-author
mislav Dec 23, 2022
2e399dc
Bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
dependabot[bot] Jan 2, 2023
c03b6ce
docs: update codespace installation instructions (#6781)
levenleven Jan 3, 2023
2d3ce62
Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 (#6794)
dependabot[bot] Jan 3, 2023
08d7ea5
Merge pull request #6798 from cli/dependabot/go_modules/github.com/gd…
Jan 3, 2023
290d904
select base repo correctly when only one remote
Jan 3, 2023
22a9cb8
tweak selection
Jan 3, 2023
47b27cd
Handle erase operation in auth git-credential command (#6805)
samcoe Jan 3, 2023
82156f7
Merge pull request #6803 from cli/fix-6792
Jan 3, 2023
1e75a74
Create centralized Codespaces RPC invoker
dmgardiner25 Nov 23, 2022
faabdc2
Fix linting error and cleanup error messages
dmgardiner25 Nov 23, 2022
731ba68
Create `Invoker` object
dmgardiner25 Jan 3, 2023
000a84d
Address comments
dmgardiner25 Jan 4, 2023
791c7db
Fix typo in has_uncommitted_changes for codespaces (#6812)
jkeech Jan 5, 2023
814fcf8
Remove unused token field
dmgardiner25 Jan 6, 2023
839378d
Merge pull request #6657 from dmgardiner25/codespaces-rpc-invoker
dmgardiner25 Jan 6, 2023
fa55cf4
add intake document
Jan 6, 2023
55c5e00
link from readme
Jan 7, 2023
98eaac3
Rebuild container using gRPC client
dmgardiner25 Jan 9, 2023
553ea39
avoid panic when bad default given to Select
Jan 9, 2023
fc21c87
Merge pull request #6831 from cli/select-default-blank
Jan 10, 2023
411181d
Merge pull request #6830 from dmgardiner25/rebuild-container-grpc
dmgardiner25 Jan 10, 2023
ce6b7d8
Start SSH server with gRPC
dmgardiner25 Jan 10, 2023
ba27e5b
Merge pull request #6838 from dmgardiner25/start-remote-server-grpc
dmgardiner25 Jan 10, 2023
efe5799
Fix spinner on error
jungaretti Jan 12, 2023
216d3bf
Add generic progress runner
jungaretti Jan 12, 2023
5879923
Use progress runner a few times
jungaretti Jan 12, 2023
9a1056f
Add `search commits` command (#6817)
kevhlee Jan 17, 2023
5557820
Migrate search commands to new table printer and add headers (#6869)
samcoe Jan 18, 2023
83d0804
Use AuthToken function to retrieve AuthToken instead of GetOrDefault …
samcoe Jan 18, 2023
8df1e99
repo set-default: support bare git repos
mislav Jan 18, 2023
638f6cc
Fix JSON payload for PR review author
mislav Jan 18, 2023
8b3e5c1
Fix `mergedBy` JSON export for PRs
mislav Jan 18, 2023
73dfb87
Use gRPC client to notify codespace of activity (#6870)
dmgardiner25 Jan 18, 2023
241f919
Merge pull request #6815 from cli/intake-doc
rmw Jan 19, 2023
351226d
Merge pull request #6881 from cli/reviewers-json-fix
mislav Jan 19, 2023
06ae07f
Merge pull request #6880 from cli/setdefault-bare-repo
mislav Jan 19, 2023
179e9c2
Add projectsV2 support to issue create, issue edit, pr create, and pr…
qoega Jan 19, 2023
2b95cbc
Close port forward writer on reader
cmbrose Jan 20, 2023
e489050
Merge remote-tracking branch 'origin/trunk' into cmbrose/pf-half-close
cmbrose Jan 20, 2023
21c9e7c
Linter and comment
cmbrose Jan 20, 2023
71ec2c4
Codespaces create: Fix missing billable owner notice for individuals …
RyanJamesCaldwell Jan 23, 2023
90ae71b
Merge pull request #6888 from cli/cmbrose/pf-half-close
cmbrose Jan 23, 2023
9dc2653
Warn against Windows absolute path when using `gh api` (#6895)
kevhlee Jan 24, 2023
a231b4a
extension create: make initial commit (#6833)
mntlty Jan 24, 2023
d49e1ff
Fix flakey TestUpdateProjectV2Items (#6909)
mislav Jan 24, 2023
4865eb5
Bump the oauth library (#6885)
mislav Jan 24, 2023
700bda3
Add `gh repo edit --enable-discussions` (#6903)
azu Jan 24, 2023
63ad804
Add notes about project scope to various commands (#6907)
samcoe Jan 24, 2023
a5edd8f
show token scopes on auth status (#6546)
mntlty Jan 25, 2023
55053df
repo delete: change confirmation flag to `--yes` (#6911)
damiensedgwick Jan 25, 2023
fef4195
Add `--reviewer` flag completion (#6873)
benjlevesque Jan 25, 2023
f669a10
Fix race conditions in invoker_test (#6905)
cmbrose Jan 25, 2023
b4a6480
Merge remote-tracking branch 'origin/trunk' into gh-ext-browse-followup
Jan 25, 2023
bab1b00
Rename `--confirm` flag to `--yes` for various destructive commands (…
damiensedgwick Jan 26, 2023
bcc0d2b
clean up some key handling
Jan 26, 2023
868af11
WIP on using pages
Jan 27, 2023
fec1f11
remove unused args from installGit
Jan 27, 2023
c2c4d8c
fix silencing git output
Jan 27, 2023
f60970f
clean up command screen
Jan 27, 2023
3af8e56
TODOs
Jan 27, 2023
ba725d7
update doc
Jan 27, 2023
3ab72f4
WIP: fixing tests
Jan 27, 2023
d2f3e89
Fix ignoring ProjectsV2-specific errors for GHES
mislav Jan 27, 2023
2561f80
Merge pull request #6921 from cli/projectsv2-ghes
mislav Jan 27, 2023
f6431ca
Use int64 repository IDs for Codespaces user secrets
joshmgross Jan 27, 2023
8c41ae8
Merge pull request #6923 from joshmgross/trunk
mislav Jan 30, 2023
1786ece
Change uint8 to uint64 to hold job with more than 255 run attempts (#…
samcoe Jan 30, 2023
37eee30
WIP fixing tests
Jan 31, 2023
300bc2c
fix tests
Jan 31, 2023
1233bd4
Special case setting dependabot org secrets (#6941)
samcoe Feb 1, 2023
ced071f
Sanitize ANSII control characters returned from the server (#6916)
samcoe Feb 1, 2023
c36aece
Bump github.com/cli/oauth from 1.0.0 to 1.0.1
dependabot[bot] Feb 2, 2023
79a1be4
Merge pull request #6948 from cli/dependabot/go_modules/github.com/cl…
mislav Feb 2, 2023
c9590f3
longer small help
Feb 2, 2023
5dea3a9
Merge branch 'trunk' into gh-ext-browse-followup
Feb 2, 2023
b8a6c1d
include readme viewing in small help
Feb 2, 2023
c024e85
Merge pull request #6584 from cli/gh-ext-browse-followup
Feb 2, 2023
138da0f
Fix adding/removing projects using flags for edit commands (#6955)
samcoe Feb 5, 2023
940ef47
Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1
dependabot[bot] Feb 6, 2023
9f426bf
Merge pull request #6973 from cli/dependabot/github_actions/microsoft…
mislav Feb 6, 2023
0dd7e9c
Fix panic in ASCII sanitization (#6956)
samcoe Feb 6, 2023
73fb4c1
secret set: enable multiline values when reading from .env file
mislav Jan 30, 2023
06af84f
Merge pull request #6932 from cli/godotenv-bump
mislav Feb 6, 2023
9743928
GH_DEBUG: fix api logging not corrupting response bodies
mislav Feb 6, 2023
2097899
Disable gh update checker in our precompiled binaries
mislav Feb 6, 2023
d1e54ec
Merge pull request #6976 from cli/httpretty-body-fix
mislav Feb 7, 2023
e6d6427
Support Fork with Default Branch Only
jsoref Feb 7, 2023
3c0c450
Merge pull request #6983 from jsoref/repo-fork-default-branch-only
mislav Feb 7, 2023
052f567
Merge pull request #6977 from cli/disable-update-checker
mislav Feb 7, 2023
d4c9890
Default to authenticated user on codespace delete (#6944)
luanzeba Feb 7, 2023
626c639
Disallow update checker delaying the gh process (#6978)
mislav Feb 7, 2023
78fb909
Teach gh cs create to use current repo as default (#6596)
rneatherway Feb 7, 2023
14eb873
Avoid implicitly fetching when adding a new git remote (#6990)
mislav Feb 7, 2023
801c38a
Add visibility warning to repo edit (#6980)
samcoe Feb 7, 2023
94fe6c7
Fix set-default interactive not showing all remotes (#6969)
despreston Feb 7, 2023
fd0af5e
feat: add `--releases` option to `gh browse` (#6996)
owenvoke Feb 8, 2023
43783a3
Move helper to iostreams
jungaretti Feb 9, 2023
d815d54
Adopt in create.go
jungaretti Feb 9, 2023
38397f1
Adopt in delete.go
jungaretti Feb 9, 2023
123380a
Adopt in edit.go
jungaretti Feb 9, 2023
f77eb5f
Adopt in list.go
jungaretti Feb 9, 2023
970088a
Adopt in ports.go
jungaretti Feb 9, 2023
bc789b2
Adopt in ssh.go
jungaretti Feb 9, 2023
a848cd1
Adopt in stop.go
jungaretti Feb 9, 2023
1b88915
Rename f to run
jungaretti Feb 9, 2023
a388358
Merge branch 'trunk' into jungaretti/fix-jupyter-spinner
jungaretti Feb 9, 2023
6a150d5
Adopt in delete.go
jungaretti Feb 9, 2023
f797213
Allow adding named gpg keys (#6993)
rpadaki Feb 12, 2023
08a1231
Allow retrieving `projectItems` in JSON and allow adding/removing use…
samcoe Feb 15, 2023
1fbcdf5
Enable darwin arm64 builds in goreleaser (#4435)
beret Feb 17, 2023
125c67b
add command gh repo unarchive
Ruminateer Feb 10, 2023
eb8bfcf
use prompter for pkg/cmd/repo/unarchive
Ruminateer Feb 21, 2023
7541ee6
Retry `git clone` on git clone failure in `gh repo fork --clone` (#6962)
jsoref Feb 21, 2023
aa1fe64
Update golang.org/x/net package (#7026)
samcoe Feb 21, 2023
57c73e8
Add `--repo` filter to more `gh codespaces` commands (#6669)
cmbrose Feb 22, 2023
1978845
feat: add open num hash to browse command
yanskun Feb 25, 2023
a33e12a
Refactor Config interface in preperation for encrypted token storage …
samcoe Feb 27, 2023
df83dc2
Add ability to store tokens in encrypted storage (#7043)
samcoe Feb 28, 2023
c9a2d85
Cleanup config.AuthToken and config.DefaultHost methods (#7049)
samcoe Feb 28, 2023
394b23a
Include new line after existing fork error log (#7030)
digitalfu Feb 28, 2023
fe78331
Merge pull request #7038 from yanskun/feat/add-open-num-commit-hash
Mar 1, 2023
0bc2f28
Merge branch 'trunk' into unarchive
Mar 1, 2023
b85a22c
use new cfg.Authentication()
Mar 2, 2023
3a22869
Merge pull request #7003 from Ruminateer/unarchive
Mar 2, 2023
f68fdf5
Update working-with-us.md
Mar 2, 2023
35a24ca
Standardize retry mechanism (#7027)
samcoe Mar 2, 2023
2268d2e
Merge pull request #7077 from cli/vilmibm-patch-1
Mar 3, 2023
7d4ab65
fix: correctly set `ErrNotOnAnyBranch` error in git client (#7082)
alex-petrov-vt Mar 5, 2023
c9992b4
Always open new vscode window in `gh cs code` (#7092)
cmbrose Mar 6, 2023
4636931
Use default host for auth token command if a hostname is not provided…
samcoe Mar 6, 2023
05bf29d
Introduce GH_PATH environment variable (#7025)
samcoe Mar 7, 2023
44b0218
Properly handle C1 control sequences (#7079)
samcoe Mar 7, 2023
5a7f779
Merge branch 'trunk' into jungaretti/fix-jupyter-spinner
jungaretti Mar 7, 2023
c347737
Fix build errors
jungaretti Mar 7, 2023
39a1dc9
Match return style
jungaretti Mar 7, 2023
0673dcc
Fix delete tests
jungaretti Mar 7, 2023
b74ba55
Make auth refresh more convenient with secure storage (#7098)
samcoe Mar 7, 2023
2c2ce9b
Bump github.com/gabriel-vasile/mimetype from 1.4.1 to 1.4.2
dependabot[bot] Mar 8, 2023
030a363
Merge pull request #7107 from cli/dependabot/go_modules/github.com/ga…
mislav Mar 8, 2023
32afc5d
pr diff: sanitize control characters for terminal output
mislav Mar 8, 2023
66cd902
Merge pull request #7108 from cli/diff-sanitize
mislav Mar 8, 2023
03730c2
Merge pull request #6848 from cli/jungaretti/fix-jupyter-spinner
jungaretti Mar 8, 2023
50ddb36
Manually get current user name rather than use api client (#7114)
samcoe Mar 9, 2023
1933fc2
codespace ssh: fix "connection reset by peer"
mislav Mar 9, 2023
b2b0a16
Merge pull request #7120 from cli/codespace-ssh-fix
mislav Mar 9, 2023
db68dfa
config get: support getting oauth_token from keyring
mislav Mar 9, 2023
71d9e0e
Merge pull request #7124 from cli/config-get-token-fix
mislav Mar 9, 2023
b5c3d98
new tooling for assertions about prompting
Mar 9, 2023
10dd74b
fix bug with Prompter.MultiSelect
Mar 9, 2023
aae4023
use t.Cleanup(m.Verify)
Mar 10, 2023
661d962
Merge pull request #7116 from cli/even-more-prompts
Mar 10, 2023
78ffa73
Use transform.Transformer interface for ascii sanitization (#7117)
samcoe Mar 12, 2023
c2d728e
Improve documentation and consistency of the `--commit` flag for `gh …
alex-petrov-vt Mar 13, 2023
cff5dec
Make repo sync git fetch authenticated (#7139)
samcoe Mar 13, 2023
76f6aa1
Clarify `gh auth refresh` command behavior (#7132)
alex-petrov-vt Mar 13, 2023
88cc4d2
Add variable set command (#6928)
atirikt Mar 13, 2023
c825095
Add variable list command (#6995)
atirikt Mar 13, 2023
e5a0b1f
Add variable delete command (#6929)
atirikt Mar 13, 2023
f7930a4
Dont follow redirects on repo delete (#7106)
samcoe Mar 13, 2023
5191c50
Only replace control sequences (#7168)
samcoe Mar 14, 2023
41a4571
Tech debt cleanup for variable and secret commands (#7151)
samcoe Mar 15, 2023
6d09500
Fixes #455 - Hide "current branch" for pr status --repo
jtpetty Mar 15, 2023
999caaa
Merge pull request #7180 from cli/jtpetty/issue-455
Mar 15, 2023
7bd7153
Fix multiword keyword quoting for search commands (#7170)
samcoe Mar 15, 2023
d905165
Bump actions/setup-go from 3 to 4 (#7177)
dependabot[bot] Mar 15, 2023
9596fd5
Skip checking keyring for token in certain scenarios (#7169)
benjlevesque Mar 17, 2023
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
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"image": "mcr.microsoft.com/devcontainers/go:1.19",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {}
},
"remoteUser": "vscode",
"customizations": {
"vscode": {
"extensions": [
"golang.go"
],
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
}
}
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
]
}
13 changes: 12 additions & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
If you discover a security issue in this repository, please submit it through the [GitHub Security Bug Bounty](https://hackerone.com/github).
GitHub takes the security of our software products and services seriously, including the open source code repositories managed through our GitHub organizations, such as [cli](https://github.com/cli).

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.

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

**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**

Thanks for helping make GitHub safe for everyone.

[private vulnerability reporting]: https://github.com/cli/cli/security/advisories
[HackerOne]: https://hackerone.com/github
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types:
- version-update:semver-minor
- version-update:semver-major
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
15 changes: 12 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,32 @@ name: Code Scanning

on:
push:
branches: [trunk]
pull_request:
branches: [trunk]
paths-ignore:
- '**/*.md'
schedule:
- cron: "0 0 * * 0"

permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results

jobs:
CodeQL-Build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: go
queries: security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
20 changes: 16 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Tests
on: [push, pull_request]

permissions:
contents: read

jobs:
build:
strategy:
Expand All @@ -9,13 +13,21 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16
go-version: 1.19

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Restore Go modules cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{ runner.os }}-${{ hashFiles('go.mod') }}
restore-keys: |
go-${{ runner.os }}-

- name: Download dependencies
run: go mod download
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/issueauto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Issue Automation
on:
issues:
types: [opened]

permissions:
contents: none
issues: write

jobs:
issue-auto:
runs-on: ubuntu-latest
steps:
- name: label incoming issue
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }}
ISSUENUM: ${{ github.event.issue.number }}
ISSUEAUTHOR: ${{ github.event.issue.user.login }}
run: |
if ! gh api orgs/cli/public_members/$ISSUEAUTHOR --silent 2>/dev/null
then
gh issue edit $ISSUENUM --add-label "needs-triage"
fi
21 changes: 16 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,36 @@ on:
- go.mod
- go.sum

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16
go-version: 1.19

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Restore Go modules cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{ runner.os }}-${{ hashFiles('go.mod') }}
restore-keys: |
go-${{ runner.os }}-

- name: Verify dependencies
run: |
go mod verify
go mod download

LINT_VERSION=1.39.0
LINT_VERSION=1.50.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
15 changes: 14 additions & 1 deletion .github/workflows/prauto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: PR Automation
on:
pull_request_target:
types: [ready_for_review, opened, reopened]

permissions:
contents: none
issues: write
pull-requests: write

jobs:
pr-auto:
runs-on: ubuntu-latest
Expand All @@ -15,6 +21,7 @@ jobs:
PRNUM: ${{ github.event.pull_request.number }}
PRHEAD: ${{ github.event.pull_request.head.label }}
PRAUTHOR: ${{ github.event.pull_request.user.login }}
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
if: "!github.event.pull_request.draft"
run: |
commentPR () {
Expand Down Expand Up @@ -42,8 +49,12 @@ jobs:
' -f colID="$(colID "Needs review")" -f prID="$PRID"
}

if gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
if [ "$PR_AUTHOR_TYPE" = "Bot" ] || gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
then
if [ "$PR_AUTHOR_TYPE" != "Bot" ]
then
gh pr edit $PRNUM --add-assignee $PRAUTHOR
fi
if ! errtext="$(addToBoard 2>&1)"
then
cat <<<"$errtext" >&2
Expand All @@ -55,6 +66,8 @@ jobs:
exit 0
fi

gh pr edit $PRNUM --add-label "external"

if [ "$PRHEAD" = "cli:trunk" ]
then
closePR
Expand Down
Loading