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

[pull] master from v2ray:master #79

Open
wants to merge 277 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
42b21f6
Merge pull request #116 from v2fly/dependabot/github_actions/actions/…
RPRX Aug 24, 2020
288e40a
Merge branch 'master' into refine-format-rename-workflow
kslr Aug 24, 2020
edb9bc4
Merge pull request #113 from Loyalsoldier/refine-format-rename-workflow
kslr Aug 24, 2020
6f04c36
Fix: lint lack of GitHub Token
Loyalsoldier Aug 24, 2020
969f68b
Merge pull request #117 from Loyalsoldier/fix-lint
RPRX Aug 24, 2020
ef460f6
Adjust Protocol Buffers (#109)
Loyalsoldier Aug 24, 2020
bd533a5
Coverage: only be triggered by *.go files
Loyalsoldier Aug 24, 2020
efb53bd
Lint: refine
Loyalsoldier Aug 24, 2020
2f1f047
Test: only be triggered by *.go files
Loyalsoldier Aug 24, 2020
b94e4eb
Merge pull request #119 from Loyalsoldier/refine-workflow
kslr Aug 24, 2020
190b1cb
Bump github/super-linter from V3.8.0 to v3.8.3
dependabot[bot] Aug 25, 2020
1eb5836
Merge pull request #120 from v2fly/dependabot/github_actions/github/s…
RPRX Aug 25, 2020
71191aa
Test: only triggered by *.go file on push event
Loyalsoldier Aug 25, 2020
ca5f253
Merge pull request #121 from Loyalsoldier/test-running-exception
RPRX Aug 25, 2020
e036db8
Proto: refine go generate command
Loyalsoldier Aug 25, 2020
f3368b1
Mock: refine go generate command
Loyalsoldier Aug 25, 2020
243a826
Merge pull request #123 from Loyalsoldier/refine-go-generate
kslr Aug 25, 2020
588b40f
Fix a typo
nasnoisaac Aug 25, 2020
fd9128f
Merge pull request #125 from dikaixu1999/patch-2
kslr Aug 25, 2020
a3bc930
Add PROXY protocol support to WS inbound
RPRX Aug 26, 2020
2bfc6c8
Merge pull request #128 from rprx/master
RPRX Aug 26, 2020
9046bea
Adjust TCP inbound logs
RPRX Aug 26, 2020
f5642b4
L -> l, A -> a
RPRX Aug 26, 2020
d9ac3f8
Bump github.com/google/go-cmp from 0.5.1 to 0.5.2
dependabot[bot] Aug 26, 2020
690c7fc
Bump google.golang.org/grpc from 1.31.0 to 1.31.1
dependabot[bot] Aug 26, 2020
25aaf82
Merge pull request #129 from v2fly/dependabot/go_modules/github.com/g…
RPRX Aug 26, 2020
38f7de5
Merge pull request #130 from v2fly/dependabot/go_modules/google.golan…
RPRX Aug 26, 2020
a40727a
added drain for ss and improved vmess drain
xiaokangwang Aug 26, 2020
e97b9b5
Merge branch 'master' of github.com:v2fly/v2ray-core
xiaokangwang Aug 26, 2020
4fbefc1
Protoc: do NOT rely on GOPATH
Loyalsoldier Aug 26, 2020
5774add
Merge pull request #131 from Loyalsoldier/protoc-dont-relay-on-GOPATH
RPRX Aug 26, 2020
1b27ec5
Mockgen: do NOT rely on GOBIN & GOPATH
Loyalsoldier Aug 26, 2020
30edcef
Merge pull request #133 from Loyalsoldier/mockgen-dont-rely-on-GOBIN-…
RPRX Aug 26, 2020
f9175e3
Fix according to go vet results
Loyalsoldier Aug 26, 2020
9466e5d
Merge pull request #134 from Loyalsoldier/fix-go-vet
RPRX Aug 26, 2020
a2a064a
protoc: do NOT rely on GOBIN & GOPATH
Loyalsoldier Aug 27, 2020
cafc80d
vprotogen: do NOT rely on GOBIN & GOPATH
Loyalsoldier Aug 27, 2020
ef99033
stale include pr
kslr Aug 27, 2020
d3ebba6
Merge pull request #137 from Loyalsoldier/protoc-dont-rely-on-GOBIN-G…
RPRX Aug 27, 2020
6f52a79
Fix: module path
Loyalsoldier Aug 27, 2020
2898064
update geoip, geosite
actions-user Aug 28, 2020
c4d57c6
Merge pull request #138 from Loyalsoldier/fix-path
RPRX Aug 28, 2020
adb3fd3
update geoip, geosite
actions-user Aug 28, 2020
3ad73fd
release 4.27.1
kslr Aug 28, 2020
84aaf3a
VLESS PREVIEW 1.5
RPRX Aug 28, 2020
feea69c
Merge pull request #140 from rprx/master
RPRX Aug 28, 2020
3962533
Update README.md
kslr Aug 28, 2020
c05992b
release 4.27.2
kslr Aug 28, 2020
1cfb044
Update README.md
kslr Aug 28, 2020
2699732
release 4.27.3
kslr Aug 29, 2020
0fdc818
Update VSign Version
xiaokangwang Aug 29, 2020
8c82fd3
update version
xiaokangwang Aug 29, 2020
4c9210c
Parse X-Forwarded-For in http transport (#142)
lucifer9 Aug 30, 2020
1fa89b3
Format: run go fmt ./...
Loyalsoldier Aug 30, 2020
f12f765
Fix according to staticcheck result
Loyalsoldier Aug 30, 2020
9e0859e
Merge pull request #144 from Loyalsoldier/refine-code
RPRX Aug 30, 2020
47c997d
Fix github.com/v2fly/v2ray-core/issues/146
Vigilans Aug 31, 2020
e55fdda
Merge pull request #148 from Vigilans/vigilans/dns-fix-array-panic
kslr Aug 31, 2020
c973b5a
Fix github.com/v2fly/v2ray-core/issues/146
Vigilans Aug 31, 2020
f6340dd
Merge pull request #149 from Vigilans/vigilans/dns-fix-localhost-ipIn…
kslr Aug 31, 2020
69da2f8
Coverage: cache Go modules
Loyalsoldier Aug 30, 2020
42e33dd
Lint: include format
Loyalsoldier Aug 30, 2020
c974908
Test: refine & cache Go modules
Loyalsoldier Aug 30, 2020
8b377a0
Update: refine
Loyalsoldier Aug 30, 2020
8323564
Merge pull request #145 from Loyalsoldier/refine-workflow
kslr Aug 31, 2020
323ef03
Minor fixes
Loyalsoldier Aug 31, 2020
2f37909
Bump github/super-linter from v3.8.3 to v3.9.2
dependabot[bot] Sep 2, 2020
4da3304
Merge pull request #155 from v2fly/dependabot/github_actions/github/s…
kslr Sep 2, 2020
971c5f2
Merge pull request #153 from Loyalsoldier/minor-fixes
kslr Sep 2, 2020
f5838d0
Update core.go
kslr Sep 2, 2020
7e38c78
Merge branch 'master' of https://github.com/v2fly/v2ray-core into v2f…
kslr Sep 2, 2020
b6d7842
Merge branch 'v2fly-master' into master
kslr Sep 2, 2020
829a28b
remove docker action
kslr Sep 2, 2020
7ffac22
1.14.7 -> 1.15.1
RPRX Sep 2, 2020
af9dbbc
Upgrade all dependencies
RPRX Sep 2, 2020
d9f50f8
Cleanup go.sum
RPRX Sep 2, 2020
44d5829
Fix: change lint order to avoid file changes notice
Loyalsoldier Sep 3, 2020
7fe8dd2
Run go mod tidy
Loyalsoldier Sep 3, 2020
a1c96a1
Bump github/super-linter from v3.9.2 to v3.9.3
dependabot[bot] Sep 3, 2020
68c1e3e
Merge pull request #159 from v2fly/dependabot/github_actions/github/s…
kslr Sep 3, 2020
7001483
Don't copy assets if they are already present
felixonmars Sep 3, 2020
39e9916
Merge pull request #160 from felixonmars/fix-test
vcptr Sep 3, 2020
11bf22b
Fix dns tests by setting v2ray.location.asset
felixonmars Sep 3, 2020
d2226cb
Merge pull request #161 from felixonmars/fix-test
vcptr Sep 3, 2020
5309338
update geoip, geosite
actions-user Sep 4, 2020
8c8761e
update geoip, geosite
actions-user Sep 4, 2020
6981711
Merge pull request #158 from Loyalsoldier/fix-lint
kslr Sep 4, 2020
f9d37b7
Extract session information during routing as routing context
Vigilans Sep 4, 2020
93afbc5
add golangci config
kslr Sep 4, 2020
b083aa2
Merge pull request #108 from Vigilans/vigilans/routing-context
kslr Sep 4, 2020
ce38341
Bump github/super-linter from v3.9.3 to v3.9.4
dependabot[bot] Sep 4, 2020
bff96a7
Support Channel (Observer Pattern) in Stats Manager
Vigilans Sep 4, 2020
ddd091a
Merge pull request #163 from Vigilans/vigilans/stats-channel
kslr Sep 4, 2020
801b949
fix abstract UDS & add PROXY protocol support to DS inbound
lucifer9 Sep 4, 2020
e6233c9
Merge pull request #162 from v2fly/dependabot/github_actions/github/s…
RPRX Sep 5, 2020
5751de2
systemd: prevent restart on corrupt config
DuckSoft Sep 6, 2020
aecf59a
Merge pull request #166 from DuckSoft/master
kslr Sep 6, 2020
f10f5b4
Merge pull request #164 from lucifer9/ds-enhance
RPRX Sep 7, 2020
16fe0b0
Do not convert @ to \x00
RPRX Sep 7, 2020
d7a5f01
Merge branch 'master' into 2725
kslr Sep 8, 2020
b613a9b
Merge pull request #2725 from v2fly/2725
kslr Sep 8, 2020
2a3fe11
VMess AEAD will be used when alterId is 0
kslr Sep 8, 2020
d7c99c9
Fix: app/stats.Manager does not implement features/stats.Manager (#171)
Loyalsoldier Sep 9, 2020
0406cd8
Add UnregisterChannel & Modify unregistering logic
Vigilans Sep 9, 2020
0a793e2
Merge pull request #172 from Vigilans/vigilans/stats-unregister
Loyalsoldier Sep 9, 2020
c4d46e7
Test: run on changes to go.mod & go.sum (#174)
Loyalsoldier Sep 9, 2020
cc25eb1
Bump google.golang.org/grpc from 1.31.1 to 1.32.0
dependabot[bot] Sep 9, 2020
4970af7
Merge pull request #173 from v2fly/dependabot/go_modules/google.golan…
kslr Sep 9, 2020
811f0dd
Merge branch 'v2fly-master' into v2ray-master
Loyalsoldier Sep 9, 2020
c7c80ff
Merge pull request #2728 from Loyalsoldier/merge-v2fly
kslr Sep 9, 2020
f624dd3
add golangci to lint
kslr Sep 9, 2020
d3e3f78
golangci only show new issues
kslr Sep 9, 2020
a8ce582
update go 1.15.*
kslr Sep 9, 2020
395174d
update bazel 3.5.0
kslr Sep 9, 2020
26848ae
Update README.md
kslr Sep 9, 2020
c2d3a73
Merge pull request #170 from v2fly/dev-enable-vmessaead-alter-0
kslr Sep 9, 2020
6db130f
Bump github/super-linter from v3.9.4 to v3.10.0
dependabot[bot] Sep 10, 2020
f9dbf2e
Merge pull request #178 from v2fly/dependabot/github_actions/github/s…
kslr Sep 10, 2020
d2b9dbe
Update README.md
kslr Sep 10, 2020
46d739d
1.15.1 -> 1.15.2
RPRX Sep 10, 2020
8c2e8e9
Add defer
RPRX Sep 10, 2020
2237528
fix
RPRX Sep 10, 2020
72d8d2a
update geoip, geosite
actions-user Sep 11, 2020
1d759b4
update geoip, geosite
actions-user Sep 11, 2020
ee1e18d
Schedulers -> Flow
RPRX Sep 11, 2020
8661477
bump version
kslr Sep 11, 2020
7a50794
Merge pull request #2730 from v2fly/master
kslr Sep 11, 2020
e2e2661
Fix incorrect IV usage which slightly reduced security
xiaokangwang Sep 12, 2020
e8a2764
bump version
kslr Sep 12, 2020
5a49789
Routing Context: Fix GetUser() & Use string for Attributes Value
Vigilans Sep 12, 2020
d2d4f48
Fix the coarse-grained mutex in http outbound
darhwa Sep 12, 2020
3d85520
Merge pull request #189 from darhwa/http-outbound
kslr Sep 13, 2020
a8972cd
Merge pull request #188 from Vigilans/vigilans/routing-context-fix
kslr Sep 13, 2020
554c919
Bump actions/stale from v3.0.10 to v3.0.11
dependabot[bot] Sep 14, 2020
f76611c
Merge pull request #194 from v2fly/dependabot/github_actions/actions/…
kslr Sep 14, 2020
43174d6
support disable vmess aead by os environ
wwqgtxx Sep 14, 2020
0cbed7e
Merge pull request #187 from wwqgtxx/master
kslr Sep 14, 2020
c530e36
Create codeql-analysis.yml
kslr Sep 15, 2020
4fca2fe
Implement common.Runnable for stats.Channel feature
Vigilans Sep 15, 2020
b744a63
Bump github/super-linter from v3.10.0 to v3.10.1 (#198)
dependabot[bot] Sep 16, 2020
e32c651
Fix and refine workflows (#199)
Loyalsoldier Sep 16, 2020
0c7dfd5
Update linter.yml
kslr Sep 16, 2020
a9e932f
Update linter.yml
kslr Sep 16, 2020
0995d96
Update linter.yml
kslr Sep 16, 2020
4b7d729
Update linter.yml
kslr Sep 16, 2020
528b564
update geoip, geosite
actions-user Sep 18, 2020
9cb633a
update geoip, geosite
actions-user Sep 18, 2020
e5d6603
bump version
kslr Sep 18, 2020
20926be
Merge pull request #2740 from v2fly/master
kslr Sep 18, 2020
782909b
Linter: only show new issues (#202)
Loyalsoldier Sep 18, 2020
df2d296
Refine linter (#203)
Loyalsoldier Sep 18, 2020
4d5a4f4
Routing: Implement Route interface as the routing result of Router
Vigilans Sep 18, 2020
9def692
kcp: removing annoying NewAEADAESGCMBasedOnSeed hint
DuckSoft Sep 20, 2020
14c80ec
Merge pull request #207 from DuckSoft/master
kslr Sep 20, 2020
64493e3
Merge pull request #200 from Vigilans/vigilans/routing-route
kslr Sep 20, 2020
525d4e1
Merge pull request #197 from Vigilans/vigilans/stats-channel-runnable
kslr Sep 20, 2020
5f62025
CodeQL: do NOT run on ready for review status (#209)
Loyalsoldier Sep 20, 2020
f9a9746
Golangci-lint: disable some plugins
Loyalsoldier Sep 20, 2020
470dc85
Make isAEAD more efficient
RPRX Sep 21, 2020
010fbf4
Make isAEAD more efficient
RPRX Sep 21, 2020
7d40aba
Merge pull request #210 from Loyalsoldier/disable-golangci-lint-plugins
kslr Sep 21, 2020
97eddc2
Add XTLS support
RPRX Sep 21, 2020
0b7d7d6
Merge pull request #213 from XTLS/master
RPRX Sep 21, 2020
2cc8c1a
Golangci-lint: increase timeout to 5 minutes (#215)
Loyalsoldier Sep 21, 2020
fa37f82
Stats: Add ChannelConfig & Return error on subscription
Vigilans Sep 23, 2020
788dd1e
Merge pull request #219 from Vigilans/vigilans/stats-channel-config
Loyalsoldier Sep 23, 2020
648d418
VLESS PREVIEW 2
RPRX Sep 24, 2020
cd9ac1b
API: Implements RoutingService
Vigilans Sep 24, 2020
3072cdc
Add return
RPRX Sep 24, 2020
0e8e238
Tiny adjustment
RPRX Sep 24, 2020
d77b88c
Merge pull request #224 from rprx/master
RPRX Sep 24, 2020
4b0aea1
Fix bug
RPRX Sep 24, 2020
f55e05c
int -> int32
RPRX Sep 24, 2020
73311d1
update geoip, geosite
actions-user Sep 25, 2020
d1704e1
update geoip, geosite
actions-user Sep 25, 2020
ad4924a
bump version
kslr Sep 25, 2020
155c0e0
update link
kslr Sep 25, 2020
ec0c3f1
DNS: refine local TLDs for localhost DNS
Loyalsoldier Sep 26, 2020
dea8b1e
Merge pull request #228 from Loyalsoldier/refine-dns-local-tlds
kslr Sep 26, 2020
211cc67
Merge pull request #208 from Vigilans/vigilans/stats-routing
kslr Sep 26, 2020
e445d21
Add trojan protocol support (#181)
maskedeken Sep 26, 2020
dfed0dc
Refine: geofile reading errors (#236)
Loyalsoldier Sep 29, 2020
6556557
VLESS UDP over TCP struct breaking change (#239)
RPRX Sep 30, 2020
cde63bf
Add XTLS support to DomainSocket (#241)
RPRX Sep 30, 2020
6376b80
bump version
kslr Oct 1, 2020
58694e7
Merge branch 'master' into 2750-conflicts
kslr Oct 1, 2020
37138e0
Merge pull request #2750 from v2fly/2750-conflicts
kslr Oct 2, 2020
4f6e028
update geoip, geosite
actions-user Oct 2, 2020
992e80b
update geoip, geosite
actions-user Oct 2, 2020
353df85
Actions: do NOT run on repo "v2ray/v2ray-core" (#244)
Loyalsoldier Oct 2, 2020
2fc5f96
Refine codes (#245)
Loyalsoldier Oct 2, 2020
dcf368b
Refine Azure Pipelines & Bazel: remove unnecessary steps (#246)
Loyalsoldier Oct 2, 2020
9f344fa
remove shadowsosks ota (#238)
kslr Oct 2, 2020
67f409d
Stats: Implements blocking/non-blocking messaging of Channel (#250)
Vigilans Oct 2, 2020
60909da
VLESS PREVIEW 2.2
RPRX Oct 3, 2020
2e4042e
Merge pull request #253 from rprx/master
RPRX Oct 3, 2020
271532f
Add full VLESS fallbacks support to Trojan (#254)
RPRX Oct 3, 2020
36f0b7d
Fix Trojan inbound access log (#255)
RPRX Oct 3, 2020
088ce4e
Refine proto.go due to protoc-gen-go-grpc update (#257)
Loyalsoldier Oct 3, 2020
7a789fe
Run go fmt
Loyalsoldier Oct 3, 2020
f184d16
Fix golangci nolint
Loyalsoldier Oct 3, 2020
68dd2a0
Merge pull request #258 from Loyalsoldier/refine-codes
Loyalsoldier Oct 3, 2020
4ba4cad
Refine func GetModuleName
Loyalsoldier Oct 4, 2020
edefca7
Refine & make proto.go work outside GOPATH
Loyalsoldier Oct 4, 2020
9b249f9
Make variables of vprotogen easier to find
Loyalsoldier Oct 4, 2020
d30b5fb
Merge pull request #259 from Loyalsoldier/refine-code
Loyalsoldier Oct 4, 2020
4130b54
Support to read go.mod recursively to get module path
Loyalsoldier Oct 4, 2020
0650af4
Refine errorgen
Loyalsoldier Oct 4, 2020
b181045
Errorgen: support to run outside of GOPATH
Loyalsoldier Oct 4, 2020
9a452bc
Merge pull request #260 from Loyalsoldier/refine-errorgen
Loyalsoldier Oct 4, 2020
b8a7803
VLESS PREVIEW 2.3
RPRX Oct 4, 2020
ef872ff
Merge pull request #262 from rprx/master
RPRX Oct 4, 2020
a308620
Fix
RPRX Oct 4, 2020
bb44d01
Format proto files using clang-format according to google style (#264)
Loyalsoldier Oct 5, 2020
8599697
Bump github.com/pires/go-proxyproto from 0.1.3 to 0.2.0 (#265)
dependabot[bot] Oct 5, 2020
c344edd
Up
RPRX Oct 5, 2020
48fde93
remove unused doc in release
kslr Oct 6, 2020
03fb762
removes all file system paths from the compiled executable, to improv…
kslr Oct 6, 2020
bcc7b78
Add XTLS support to mKCP (#267)
RPRX Oct 6, 2020
359f844
compiler use gogcc, remove gcflags and asmflags (#269)
kslr Oct 7, 2020
4bf1b4e
VLESS PREVIEW 2.4
RPRX Oct 7, 2020
884feea
Merge pull request #271 from rprx/master
RPRX Oct 7, 2020
6e4701b
Build: do NOT rely on GOPATH & refine user-package.sh (#270)
Loyalsoldier Oct 7, 2020
8071aa9
Update rights owner
kslr Oct 7, 2020
7ef520b
Refine user-package (#272)
Loyalsoldier Oct 7, 2020
6769e65
Run go mod tidy (#273)
Loyalsoldier Oct 7, 2020
26aecf0
Refine Dockerfile (#274)
Loyalsoldier Oct 7, 2020
93a91ea
Refine README (#275)
Loyalsoldier Oct 7, 2020
ba99e32
Bazel: discard GOPATH (#278)
Loyalsoldier Oct 7, 2020
f0403a6
Refine scripts (#279)
Loyalsoldier Oct 7, 2020
425b4b4
Add padding to abstract unix domain socket in fallbacks (#277)
lucifer9 Oct 8, 2020
4545283
Fix misspelling according to goreportcard result (#282)
Loyalsoldier Oct 8, 2020
97dac8c
Build: comply with upstream (#283)
Loyalsoldier Oct 8, 2020
8e8127b
update geoip, geosite
actions-user Oct 9, 2020
9997567
update geoip, geosite
actions-user Oct 9, 2020
a44e1ed
update to IETF QUIC draft-29 (#287)
kslr Oct 9, 2020
811981b
Geofile workflow: only run on v2fly/v2ray-core (#288)
Loyalsoldier Oct 9, 2020
1f70185
bump version
VentoValery Oct 9, 2020
807922f
Reduce timeout & fix ineffassign (#290)
Loyalsoldier Oct 9, 2020
ed97a25
Refine golangci-lint settings (#293)
Loyalsoldier Oct 9, 2020
c50fef4
Refine golangci-lint settings (#294)
Loyalsoldier Oct 9, 2020
98911dc
Merge branch 'master' of https://github.com/v2fly/v2ray-core into v2f…
kslr Oct 10, 2020
ff02f2a
Merge branch 'v2fly-master' into master
kslr Oct 10, 2020
418ff07
Bump actions/stale from v3.0.11 to v3.0.13
dependabot[bot] Nov 3, 2020
b0a9256
Merge pull request #2787 from v2ray/dependabot/github_actions/actions…
kslr Nov 3, 2020
5fa62c3
update security policy with renewed GPG pubkey
nicholascw Nov 8, 2020
c22fdf6
Bump github.com/google/go-cmp from 0.5.2 to 0.5.3
dependabot[bot] Nov 13, 2020
5dffca8
Merge pull request #2795 from v2ray/dependabot/go_modules/github.com/…
kslr Nov 13, 2020
6a74725
Bump github.com/stretchr/testify from 1.6.1 to 1.8.1
dependabot[bot] Oct 24, 2022
d80440f
Merge pull request #3085 from v2ray/dependabot/go_modules/github.com/…
kslr Feb 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .dev/protoc/linux/protoc
Binary file not shown.
Binary file modified .dev/protoc/macos/protoc
Binary file not shown.
Binary file modified .dev/protoc/windows/protoc.exe
Binary file not shown.
20 changes: 15 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
38 changes: 38 additions & 0 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
run:
timeout: 5m
skip-files:
- generated.*

issues:
new: true

linters:
enable:
- bodyclose
- depguard
- gocritic
- gofmt
- goimports
- golint
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- varcheck
- whitespace
disable:
- deadcode
- errcheck
- unused
69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CodeQL

on:
push:
branches: [master]
paths:
- "**/*.go"
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
paths:
- "**/*.go"
schedule:
- cron: '0 0 * * 1'

jobs:
analyze:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['go']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
28 changes: 18 additions & 10 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,38 @@ name: Coverage

on:
push:
branches: [ master ]
branches: [master]
paths:
- "**/*.go"

jobs:

build:
name: Coverage
coverage:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ubuntu-latest

steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
go-version: ^1.15

- name: Check out code into the Go module directory
- name: Checkout codebase
uses: actions/checkout@v2

- name: Cache go module
uses: actions/cache@v2
id: cache-gomodules
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Get dependencies
if: steps.cache-gomodules.outputs.cache-hit != 'true'
run: |
go get -v -t -d ./...

- name: Run Coverage
- name: Run coverage
run: ./testing/coverage/coverall2

- name: Upload coverage to Codecov
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/dlc.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/docker.yaml

This file was deleted.

36 changes: 22 additions & 14 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: Lint Code Base
name: Linter

on:
push:
branches: [ master ]
branches: [master]
paths:
- "**/*.go"
pull_request:
branches: [ master ]
types: [assigned, opened, synchronize, reopened]
branches: [master]
types: [opened, synchronize, reopened]
paths:
- "**/*.go"

jobs:
build:
name: Lint Code Base
lint:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Checkout codebase
uses: actions/checkout@v2

- name: Lint Code Base
uses: github/super-linter@v2.2.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_JSON: false
VALIDATE_ANSIBLE: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
args: --config=.github/linters/.golangci.yml
only-new-issues: true
32 changes: 10 additions & 22 deletions .github/workflows/sign.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
# This is a basic workflow to help you get started with Actions

name: Sign

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [released]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
sign:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Invoke release signing
- name: make it run
run: chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh
- name: Checkout default branch
uses: actions/checkout@v2

# Invoke release signing
- name: make it run
run: chmod +x $GITHUB_WORKSPACE/release/requestsign.sh
- name: Grant it execution permission
run: |
chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh
chmod +x $GITHUB_WORKSPACE/release/requestsign.sh

# Invoke release signing
- name: Invoke release signing
env:
SIGN_SERVICE_PASSWORD: ${{ secrets.SIGN_SERVICE_PASSWORD }}
SIGN_SERIVCE_URL: ${{ secrets.SIGN_SERIVCE_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $GITHUB_WORKSPACE/release/requestsign_github.sh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $GITHUB_WORKSPACE/release/requestsign_github.sh
17 changes: 8 additions & 9 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 120
days-before-close: 5
- uses: actions/stale@v3.0.13
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days"
stale-pr-message: 'It has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 120
days-before-close: 5