Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(grafeas): add support for upgrade notes; add cpe and last_scan_time to DiscoveryOccurrence; add source_update_time to VulnerabilityNote (via synth) #10084

Merged
merged 1 commit into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions grafeas/grafeas/grafeas_v1/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class NoteKind(enum.IntEnum):
DEPLOYMENT (int): The note and occurrence track deployment events.
DISCOVERY (int): The note and occurrence track the initial discovery status of a resource.
ATTESTATION (int): This represents a logical "role" that can attest to artifacts.
UPGRADE (int): This represents an available package upgrade.
"""

NOTE_KIND_UNSPECIFIED = 0
Expand All @@ -57,6 +58,7 @@ class NoteKind(enum.IntEnum):
DEPLOYMENT = 5
DISCOVERY = 6
ATTESTATION = 7
UPGRADE = 8


class Severity(enum.IntEnum):
Expand Down
2 changes: 2 additions & 0 deletions grafeas/grafeas/grafeas_v1/proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ enum NoteKind {
DISCOVERY = 6;
// This represents a logical "role" that can attest to artifacts.
ATTESTATION = 7;
// This represents an available package upgrade.
UPGRADE = 8;
}

// Metadata for any related URL information.
Expand Down
8 changes: 6 additions & 2 deletions grafeas/grafeas/grafeas_v1/proto/common_pb2.py

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

7 changes: 7 additions & 0 deletions grafeas/grafeas/grafeas_v1/proto/discovery.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ syntax = "proto3";

package grafeas.v1;

import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
import "grafeas/v1/common.proto";

Expand Down Expand Up @@ -73,4 +74,10 @@ message DiscoveryOccurrence {
// details to show to the user. The LocalizedMessage is output only and
// populated by the API.
google.rpc.Status analysis_status_error = 3;

// The CPE of the resource being scanned.
string cpe = 4;

// The last time this resource was scanned.
google.protobuf.Timestamp last_scan_time = 5;
}
63 changes: 54 additions & 9 deletions grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py

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

Loading