Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit dc754aa

Browse files
joncinquet-nelson
andauthored
stake-pool: Add security.txt (#5929)
* stake-pool: Add security.txt * Update stake-pool/program/src/entrypoint.rs Co-authored-by: Trent Nelson <[email protected]> --------- Co-authored-by: Trent Nelson <[email protected]>
1 parent f85e0c2 commit dc754aa

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stake-pool/program/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ num_enum = "0.7.1"
2121
serde = "1.0.193"
2222
serde_derive = "1.0.103"
2323
solana-program = "1.17.6"
24+
solana-security-txt = "1.1.1"
2425
spl-math = { version = "0.2", path = "../../libraries/math", features = [ "no-entrypoint" ] }
2526
spl-pod = { version = "0.1", path = "../../libraries/pod", features = ["borsh"] }
2627
spl-token-2022 = { version = "0.9", path = "../../token/program-2022", features = [ "no-entrypoint" ] }

stake-pool/program/src/entrypoint.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use {
88
account_info::AccountInfo, entrypoint::ProgramResult, program_error::PrintProgramError,
99
pubkey::Pubkey,
1010
},
11+
solana_security_txt::security_txt,
1112
};
1213

1314
solana_program::entrypoint!(process_instruction);
@@ -24,3 +25,18 @@ fn process_instruction(
2425
Ok(())
2526
}
2627
}
28+
29+
security_txt! {
30+
// Required fields
31+
name: "SPL Stake Pool",
32+
project_url: "https://spl.solana.com/stake-pool",
33+
contacts: "link:https://github.com/solana-labs/solana-program-library/security/advisories/new,mailto:[email protected],discord:https://solana.com/discord",
34+
policy: "https://github.com/solana-labs/solana-program-library/blob/master/SECURITY.md",
35+
36+
// Optional Fields
37+
preferred_languages: "en",
38+
source_code: "https://github.com/solana-labs/solana-program-library/tree/master/stake-pool/program",
39+
source_revision: "58c1226a513d3d8bb2de8ec67586a679be7fd2d4",
40+
source_release: "stake-pool-v0.6.4",
41+
auditors: "https://github.com/solana-labs/security-audits#stake-pool"
42+
}

0 commit comments

Comments
 (0)