Skip to content

Commit

Permalink
Security TXT: Add source_release and source_revision fields (solana-l…
Browse files Browse the repository at this point in the history
  • Loading branch information
kilimnik authored and nickfrosty committed Jan 4, 2023
1 parent e785e34 commit e402737
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
16 changes: 13 additions & 3 deletions explorer/src/components/account/SecurityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,25 @@ const ROWS: TableRow[] = [
key: "preferred_languages",
type: DisplayType.String,
},
{
display: "Secure Contact Encryption",
key: "encryption",
type: DisplayType.PGP,
},
{
display: "Source Code URL",
key: "source_code",
type: DisplayType.URL,
},
{
display: "Secure Contact Encryption",
key: "encryption",
type: DisplayType.PGP,
display: "Source Code Release Version",
key: "source_release",
type: DisplayType.String,
},
{
display: "Source Code Revision",
key: "source_revision",
type: DisplayType.String,
},
{
display: "Auditors",
Expand Down
8 changes: 6 additions & 2 deletions explorer/src/utils/security-txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ export type SecurityTXT = {
contacts: string;
policy: string;
preferred_languages?: string;
source_code?: string;
encryption?: string;
source_code?: string;
source_release?: string;
source_revision?: string;
auditors?: string;
acknowledgements?: string;
expiry?: string;
Expand All @@ -24,8 +26,10 @@ const VALID_KEYS: (keyof SecurityTXT)[] = [
"contacts",
"policy",
"preferred_languages",
"source_code",
"encryption",
"source_code",
"source_release",
"source_revision",
"auditors",
"acknowledgements",
"expiry",
Expand Down

0 comments on commit e402737

Please sign in to comment.