Skip to content

Commit 46da897

Browse files
authored
update to new nightfall generated client version (#43)
1 parent dbaa5df commit 46da897

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/golang/mock v1.4.3
88
github.com/google/go-cmp v0.5.1 // indirect
99
github.com/google/go-github/v31 v31.0.0
10-
github.com/nightfallai/nightfall_go_client v0.0.2
10+
github.com/nightfallai/nightfall_go_client v0.0.3
1111
github.com/pkg/errors v0.9.1 // indirect
1212
github.com/spf13/pflag v1.0.5
1313
github.com/stretchr/testify v1.6.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ github.com/google/go-github/v31 v31.0.0 h1:JJUxlP9lFK+ziXKimTCprajMApV1ecWD4NB6C
1515
github.com/google/go-github/v31 v31.0.0/go.mod h1:NQPZol8/1sMoWYGN2yaALIBytu17gAWfhbweiEed3pM=
1616
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
1717
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
18-
github.com/nightfallai/nightfall_go_client v0.0.2 h1:CrERjmU+HDOuzkX7qYo+gPKHXVPqEC3AAiCdVZH0Da4=
19-
github.com/nightfallai/nightfall_go_client v0.0.2/go.mod h1:sv20Ki2CQcMFm4xkaPiEX9OzrhvAuqj4nc2bUP7biDk=
18+
github.com/nightfallai/nightfall_go_client v0.0.3 h1:QBftTJG2TxnoGiQnQwiwkAtfAEy+jlTx8r1XeBgVCiQ=
19+
github.com/nightfallai/nightfall_go_client v0.0.3/go.mod h1:sv20Ki2CQcMFm4xkaPiEX9OzrhvAuqj4nc2bUP7biDk=
2020
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
2121
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
2222
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

internal/clients/diffreviewer/circleci/circleci_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (c *circleCiTestSuite) TestLoadEmptyConfig() {
216216
tp := c.initTestParams()
217217
apiKey := "api-key"
218218
apiDetector := nightfallAPI.API_KEY
219-
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_TOKEN
219+
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_KEY
220220
workspace, err := os.Getwd()
221221
c.NoError(err, "Error getting workspace")
222222
workspacePath := path.Join(workspace, "../../../../test/data")

internal/clients/diffreviewer/github/github_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (g *githubTestSuite) TestLoadEmptyConfig() {
202202
owner := "nightfallai"
203203
repo := "testRepo"
204204
apiDetector := nightfallAPI.API_KEY
205-
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_TOKEN
205+
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_KEY
206206
pullRequest := 1
207207
workspace, err := os.Getwd()
208208
g.NoError(err, "Error getting workspace")

internal/nightfallconfig/nightfall_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616
const MaxConcurrentRoutinesCap = 50
1717
const DefaultMaxNumberRoutines = 20
1818
const nightfallConfigFilename = ".nightfalldlp/config.json"
19-
const defaultDetectorsInfoMessage = "Using default detectors (API_KEY and CRYTOGRAPHIC_TOKEN)"
19+
const defaultDetectorsInfoMessage = "Using default detectors (API_KEY and CRYTOGRAPHIC_KEY)"
2020

2121
var apiKeyDetector = nightfallAPI.API_KEY
22-
var cryptoKeyDetector = nightfallAPI.CRYPTOGRAPHIC_TOKEN
22+
var cryptoKeyDetector = nightfallAPI.CRYPTOGRAPHIC_KEY
2323

2424
// NightfallConfigFileStructure struct representation of nightfall config file
2525
type NightfallConfigFileStructure struct {

internal/nightfallconfig/nightfall_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestGetNightfallConfig(t *testing.T) {
3838

3939
func TestGetNightfallConfigMissingConfigFile(t *testing.T) {
4040
apiDetector := nightfallAPI.API_KEY
41-
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_TOKEN
41+
cryptoDetector := nightfallAPI.CRYPTOGRAPHIC_KEY
4242
workspaceConfig, err := os.Getwd()
4343
assert.NoError(t, err, "Unexpected error when getting current directory")
4444
workspacePath := path.Join(workspaceConfig, "../../test/data")

0 commit comments

Comments
 (0)