Skip to content

Commit

Permalink
Address linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
be0x74a committed Apr 28, 2024
1 parent 0211716 commit fdb2be1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions github/dependency_graph_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type DependencyGraphSnapshotResolvedDependencyScope string
type DependencyGraphSnapshotCreationResult string

type DependencyGraphSnapshotResolvedDependency struct {
PackageUrl *string `json:"package_url,omitempty"`
PackageURL *string `json:"package_url,omitempty"`
Relationship DependencyGraphSnapshotResolvedDependencyRelationship `json:"relationship,omitempty"`
Scope DependencyGraphSnapshotResolvedDependencyScope `json:"scope,omitempty"`
Dependencies []string `json:"dependencies,omitempty"`
Expand All @@ -42,7 +42,7 @@ type DependencyGraphSnapshotResolvedDependency struct {
type DependencyGraphSnapshotJob struct {
Correlator *string `json:"correlator,omitempty"`
ID *string `json:"id,omitempty"`
HtmlUrl *string `json:"html_url,omitempty"`
HTMLURL *string `json:"html_url,omitempty"`
}

type DependencyGraphSnapshotDetector struct {
Expand Down
8 changes: 4 additions & 4 deletions github/dependency_graph_snapshots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestDependencyGraphService_CreateSnapshot(t *testing.T) {
Job: &DependencyGraphSnapshotJob{
Correlator: String("yourworkflowname_youractionname"),
ID: String("yourrunid"),
HtmlUrl: String("https://example.com"),
HTMLURL: String("https://example.com"),
},
Detector: &DependencyGraphSnapshotDetector{
Name: String("octo-detector"),
Expand All @@ -47,19 +47,19 @@ func TestDependencyGraphService_CreateSnapshot(t *testing.T) {
File: &DependencyGraphSnapshotManifestFile{SourceLocation: String("src/package-lock.json")},
Resolved: map[string]*DependencyGraphSnapshotResolvedDependency{
"@actions/core": {
PackageUrl: String("pkg:/npm/%40actions/core@1.1.9"),
PackageURL: String("pkg:/npm/%40actions/core@1.1.9"),
Relationship: "direct",
Scope: "runtime",
Dependencies: []string{"@actions/http-client"},
},
"@actions/http-client": {
PackageUrl: String("pkg:/npm/%40actions/http-client@1.0.7"),
PackageURL: String("pkg:/npm/%40actions/http-client@1.0.7"),
Relationship: "indirect",
Scope: "runtime",
Dependencies: []string{"tunnel"},
},
"tunnel": {
PackageUrl: String("pkg:/npm/tunnel@0.0.6"),
PackageURL: String("pkg:/npm/tunnel@0.0.6"),
Relationship: "indirect",
Scope: "runtime",
},
Expand Down
16 changes: 8 additions & 8 deletions github/github-accessors.go

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

20 changes: 10 additions & 10 deletions github/github-accessors_test.go

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

0 comments on commit fdb2be1

Please sign in to comment.