Skip to content

Commit

Permalink
Minor modifications and test case work
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Aug 12, 2024
1 parent 84daa6b commit eefcd7f
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 75 deletions.
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"source.organizeImports": "always"
}
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"markiscodecoverage.coverageThreshold": 95,
"markiscodecoverage.enableOnStartup": true,
"markiscodecoverage.searchCriteria": "*.lcov*"
Expand All @@ -60,9 +66,10 @@
"ahebrank.yaml2json",
"AmazonWebServices.amazon-q-vscode",
"markis.code-coverage",
"Gruntfuggly.todo-tree"
"Gruntfuggly.todo-tree",
"esbenp.prettier-vscode"
]
}
},
"postCreateCommand": "/usr/bin/bash ./.devcontainer/post-create.sh > ~/post-create.log"
"postCreateCommand": "/usr/bin/bash ./.devcontainer/post-create.sh > ~/post-create.log && starship preset nerd-font-symbols -o ~/.config/starship.toml"
}
6 changes: 0 additions & 6 deletions .devcontainer/post-create.sh

This file was deleted.

14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,20 @@
"./_TESTDATA_/sbom/railsgoat.cyclonedx.json"
]
},
{
"name": "Debug File (ossindex - railsgoat w/epss)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"args": [
"--provider=ossindex",
"--debug=true",
"--enrich=epss",
"scan",
"./_TESTDATA_/sbom/railsgoat.cyclonedx.json"
]
},
{
"name": "Debug File (osv - railsgoat)",
"type": "go",
Expand Down
132 changes: 69 additions & 63 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func checkForNewVersion(currentVersion string) {

release, _, err := client.Repositories.GetLatestRelease(ctx, "devops-kung-fu", "bomber")
if err != nil {
fmt.Printf("Error fetching latest release: %v\n", err)
log.Printf("Error fetching latest release: %v\n", err)
return
}

Expand Down
4 changes: 2 additions & 2 deletions providers/ossindex/OSSIndex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func Test_validateCredentials(t *testing.T) {
func TestProvider_Scan(t *testing.T) {

credentials := models.Credentials{
Username: os.Getenv("BOMBER_PROVIDER_USERNAME"),
ProviderToken: os.Getenv("BOMBER_PROVIDER_TOKEN"),
// Username: os.Getenv("BOMBER_PROVIDER_USERNAME"),
// ProviderToken: os.Getenv("BOMBER_PROVIDER_TOKEN"),
}

httpmock.ActivateNonDefault(client.GetClient())
Expand Down
1 change: 0 additions & 1 deletion providers/osv/osv.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ var client *resty.Client
func init() {
client = resty.New()
client.SetTransport(&http.Transport{TLSHandshakeTimeout: 60 * time.Second})
client.Debug = true
}

// Provider represents the OSSIndex provider
Expand Down

0 comments on commit eefcd7f

Please sign in to comment.