Skip to content

Commit

Permalink
chore(ci): use go install (aquasecurity#141)
Browse files Browse the repository at this point in the history
* chore(ci): use go install

* refactor: verbose error

* chore(mod): update go-github
  • Loading branch information
knqyf263 authored Aug 24, 2021
1 parent 62aa461 commit 4ff21f5
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: go

- name: Install bbolt
run: go get -v github.com/etcd-io/bbolt/cmd/bbolt
run: go install go.etcd.io/bbolt/cmd/bbolt@v1.3.5

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion cmd/trivy-db/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ func main() {
app := ac.NewApp(version)
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
log.Fatalf("%+v", err)
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/aquasecurity/vuln-list-update v0.0.0-20191016075347-3d158c2bf9a2
github.com/briandowns/spinner v1.12.0
github.com/fatih/color v1.10.0
github.com/google/go-github/v28 v28.1.1
github.com/google/go-github/v38 v38.1.0
github.com/hashicorp/go-version v1.2.1
github.com/knqyf263/go-rpm-version v0.0.0-20170716094938-74609b86c936
github.com/stretchr/testify v1.6.1
Expand Down
7 changes: 4 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-github/v28 v28.1.1 h1:kORf5ekX5qwXO2mGzXXOjMe/g6ap8ahVe0sBEulhSxo=
github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-github/v38 v38.1.0 h1:C6h1FkaITcBFK7gAmq4eFzt6gbhEhk7L5z6R3Uva+po=
github.com/google/go-github/v38 v38.1.0/go.mod h1:cStvrz/7nFr0FoENgG6GLbp53WaelXucT+BBz/3VKx4=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"time"

"github.com/google/go-github/v28/github"
"github.com/google/go-github/v38/github"
"golang.org/x/oauth2"
"golang.org/x/xerrors"
"k8s.io/utils/clock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/google/go-github/v28/github"
"github.com/google/go-github/v38/github"
"k8s.io/utils/clock"
ct "k8s.io/utils/clock/testing"

Expand Down
106 changes: 53 additions & 53 deletions pkg/github/mock_repository_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ff21f5

Please sign in to comment.