Skip to content

Commit 368191d

Browse files
authored
remove nancy (#2)
1 parent 91f1bc7 commit 368191d

File tree

7 files changed

+7
-32
lines changed

7 files changed

+7
-32
lines changed

.github/Brewfile

-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
tap "golangci/tap"
22
tap "kyoh86/tap"
3-
tap "sonatype-nexus-community/nancy-tap"
43
tap "sv-tools/apps"
54
tap "goreleaser/tap"
65

76
# Fast linters runner for Go.
87
brew "golangci/tap/golangci-lint"
98
# Rich-Go will enrich `go test` outputs with text decorations
109
brew "kyoh86/tap/richgo"
11-
# A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
12-
brew "sonatype-nexus-community/nancy-tap/nancy"
1310
# bumptag is a tool to increment a version and to create a git tag with an annotation.
1411
brew "sv-tools/apps/bumptag"
1512
# Deliver Go binaries as fast and easily as possible

.github/workflows/checks.yaml

+3-20
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ env:
1515

1616
jobs:
1717
CodeQL:
18-
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1918
runs-on: ubuntu-latest
2019

20+
permissions:
21+
security-events: write
22+
2123
steps:
2224
- name: Checkout repository
2325
uses: actions/checkout@v2
2426

25-
# Initializes the CodeQL tools for scanning.
2627
- name: Initialize CodeQL
2728
uses: github/codeql-action/init@v1
2829
with:
@@ -69,21 +70,3 @@ jobs:
6970
version: latest
7071
skip-build-cache: true
7172
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/[email protected]

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ linters:
1616
- gocyclo
1717
- goerr113
1818
- gofumpt
19-
- golint
2019
- goprintffuncname
2120
- gosec
2221
- ifshort

.nancy-ignore

Whitespace-only changes.

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(shell uname), Darwin)
77
all: brew-install
88
endif
99

10-
all: tidy lint nancy test done
10+
all: tidy lint test done
1111

1212
done:
1313
@echo "$(OK_COLOR)==> Done.$(NO_COLOR)"
@@ -26,10 +26,6 @@ run-benchmark:
2626

2727
test: run-test run-benchmark
2828

29-
nancy:
30-
@echo "$(OK_COLOR)==> Checking Vulnerability via nancy...$(NO_COLOR)"
31-
@go list -json -m all | nancy sleuth --quiet
32-
3329
lint:
3430
@echo "$(OK_COLOR)==> Linting via golangci-lint...$(NO_COLOR)"
3531
@golangci-lint run --fix ./...

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.17
55
require (
66
github.com/spf13/pflag v1.0.5
77
github.com/stretchr/testify v1.7.0
8-
github.com/sv-tools/conf v1.2.0
8+
github.com/sv-tools/conf v1.2.1
99
)
1010

1111
require (

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
1111
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
1212
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
1313
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
14-
github.com/sv-tools/conf v1.2.0 h1:wnY7DVMopQxY8tI8dEYI9KV24f+32iPvAcmOZtHmMdQ=
15-
github.com/sv-tools/conf v1.2.0/go.mod h1:JXH0HRFlTwyvLPr0IbD3CNHdp9oiQujuj+iIuYdRkmQ=
14+
github.com/sv-tools/conf v1.2.1 h1:vxUFIU1TA5XFukIidPS2PH3bS8wq1O73+uZ7xEIInCE=
15+
github.com/sv-tools/conf v1.2.1/go.mod h1:OaofESH1b31AhuR6oHHSoAt6pdcBouIELgwVPoQx6kc=
1616
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1717
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1818
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=

0 commit comments

Comments
 (0)