File tree 9 files changed +21
-43
lines changed 9 files changed +21
-43
lines changed Original file line number Diff line number Diff line change 1
1
tap "golangci/tap"
2
2
tap "kyoh86/tap"
3
- tap "sonatype-nexus-community/nancy-tap"
4
3
tap "sv-tools/apps"
5
4
6
5
# Fast linters runner for Go.
7
6
brew "golangci/tap/golangci-lint"
8
7
# Rich-Go will enrich `go test` outputs with text decorations
9
8
brew "kyoh86/tap/richgo"
10
- # A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
11
- brew "sonatype-nexus-community/nancy-tap/nancy"
12
9
# bumptag is a tool to increment a version and to create a git tag with an annotation.
13
10
brew "sv-tools/apps/bumptag"
Original file line number Diff line number Diff line change 11
11
- cron : " 0 0 * * 0"
12
12
13
13
env :
14
- GO : 1.16
14
+ GO : 1.17
15
15
16
16
jobs :
17
17
CodeQL :
18
- # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
19
18
runs-on : ubuntu-latest
20
19
20
+ permissions :
21
+ security-events : write
22
+
21
23
steps :
22
24
- name : Checkout repository
23
25
uses : actions/checkout@v2
24
26
25
- # Initializes the CodeQL tools for scanning.
26
27
- name : Initialize CodeQL
27
28
uses : github/codeql-action/init@v1
28
29
with :
69
70
version : latest
70
71
skip-build-cache : true
71
72
skip-go-installation : true
72
-
73
- Nancy :
74
- runs-on : ubuntu-latest
75
-
76
- steps :
77
- - name : Checkout repository
78
- uses : actions/checkout@v2
79
-
80
- - name : Install Go
81
- uses : actions/setup-go@v2
82
- with :
83
- go-version : ${{ env.GO }}
84
-
85
- - name : Prepare go list
86
- run : go list -json -m all > go.list
87
-
88
- - name : Run Nancy
89
- uses : sonatype-nexus-community/nancy-github-action@v1.0.2
Original file line number Diff line number Diff line change 8
8
- " v[0-9]+.[0-9]+.[0-9]+"
9
9
10
10
env :
11
- GO : 1.16
11
+ GO : 1.17
12
12
13
13
jobs :
14
14
bump-version :
@@ -31,20 +31,17 @@ jobs:
31
31
git config user.name "sv-tools-bot"
32
32
git config user.email "sv.go.tools@gmail.com"
33
33
git fetch --all
34
-
35
34
- name : Create Tag
36
35
run : |
37
36
docker run --rm -v $PWD:/mount -w /mount svtools/bumptag:latest ${{ github.event.milestone.title }}
38
-
39
37
- name : Push Tag
40
38
run : git push origin --tags
41
39
42
40
- name : Create Milestone
43
- uses : WyriHaximus/github-action- create-milestone@v1.1
41
+ uses : sv-tools/ create-milestone-action @v1.0.0
44
42
with :
43
+ token : " ${{ secrets.GITHUB_TOKEN }}"
45
44
title : Next
46
- env :
47
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
48
45
49
46
release-lib :
50
47
if : github.event_name == 'push'
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ linters:
16
16
- gocyclo
17
17
- goerr113
18
18
- gofumpt
19
- - golint
20
19
- goprintffuncname
21
20
- gosec
22
21
- ifshort
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ifeq ($(shell uname), Darwin)
7
7
all : brew-install
8
8
endif
9
9
10
- all : tidy lint nancy test done
10
+ all : tidy lint test done
11
11
12
12
done :
13
13
@echo " $( OK_COLOR) ==> Done.$( NO_COLOR) "
@@ -26,10 +26,6 @@ run-benchmark:
26
26
27
27
test : run-test run-benchmark
28
28
29
- nancy :
30
- @echo " $( OK_COLOR) ==> Checking Vulnerability via nancy...$( NO_COLOR) "
31
- @go list -json -m all | nancy sleuth --quiet
32
-
33
29
lint :
34
30
@echo " $( OK_COLOR) ==> Linting via golangci-lint...$( NO_COLOR) "
35
31
@golangci-lint run --fix ./...
Original file line number Diff line number Diff line change 7
7
8
8
The [ conf] ( https://github.com/sv-tools/conf ) reader for Environment Variables.
9
9
10
-
11
10
## License
12
11
13
12
MIT licensed. See the bundled [ LICENSE] ( LICENSE ) file for more details.
Original file line number Diff line number Diff line change 1
1
module github.com/sv-tools/conf-reader-env
2
2
3
- go 1.16
3
+ go 1.17
4
4
5
5
require (
6
6
github.com/stretchr/testify v1.7.0
7
- github.com/sv-tools/conf v0.1.1
7
+ github.com/sv-tools/conf v1.2.1
8
+ )
9
+
10
+ require (
11
+ github.com/davecgh/go-spew v1.1.1 // indirect
12
+ github.com/pmezard/go-difflib v1.0.0 // indirect
13
+ github.com/spf13/cast v1.4.1 // indirect
14
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
8
15
)
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
3
3
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4
4
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
5
5
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
6
- github.com/spf13/cast v1.3 .1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng =
7
- github.com/spf13/cast v1.3 .1 /go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE =
6
+ github.com/spf13/cast v1.4 .1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA =
7
+ github.com/spf13/cast v1.4 .1 /go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE =
8
8
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
9
9
github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
10
10
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY =
11
11
github.com/stretchr/testify v1.7.0 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
12
- github.com/sv-tools/conf v0.1 .1 h1:vzMSot3YpgaiwHjWUPFSo0kOBvjqeolRhbhrM9G9yRk =
13
- github.com/sv-tools/conf v0.1 .1/go.mod h1:yx9N9+paAqxMANswxDSWIzYMImkFcfRA1U+FL/Vd6yM =
12
+ github.com/sv-tools/conf v1.2 .1 h1:vxUFIU1TA5XFukIidPS2PH3bS8wq1O73+uZ7xEIInCE =
13
+ github.com/sv-tools/conf v1.2 .1/go.mod h1:OaofESH1b31AhuR6oHHSoAt6pdcBouIELgwVPoQx6kc =
14
14
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
15
15
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
16
16
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo =
You can’t perform that action at this time.
0 commit comments