Skip to content

Commit

Permalink
Security TXT: Add source_release and source_revision fields (#29392)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilimnik authored Dec 23, 2022
1 parent d32c348 commit 892e23c
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

1 comment on commit 892e23c

@anza-team
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for explorer ready!

✅ Preview
https://explorer-v4cq4lobk-solana-labs.vercel.app

Built with commit 892e23c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.