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

Commit f85e0c2

Browse files
authored
token-2022: Add security.txt (#5928)
token-2022: Add security.txt support
1 parent 8c0270f commit f85e0c2

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Cargo.lock

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

token/program-2022/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ num-derive = "0.4"
2424
num-traits = "0.2"
2525
num_enum = "0.7.1"
2626
solana-program = "1.17.6"
27+
solana-security-txt = "1.1.1"
2728
solana-zk-token-sdk = "1.17.6"
2829
spl-memo = { version = "4.0.0", path = "../../memo/program", features = [ "no-entrypoint" ] }
2930
spl-token = { version = "4.0", path = "../program", features = ["no-entrypoint"] }

token/program-2022/src/entrypoint.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use {
66
account_info::AccountInfo, entrypoint::ProgramResult, program_error::PrintProgramError,
77
pubkey::Pubkey,
88
},
9+
solana_security_txt::security_txt,
910
};
1011

1112
solana_program::entrypoint!(process_instruction);
@@ -21,3 +22,18 @@ fn process_instruction(
2122
}
2223
Ok(())
2324
}
25+
26+
security_txt! {
27+
// Required fields
28+
name: "SPL Token-2022",
29+
project_url: "https://spl.solana.com/token-2022",
30+
contacts: "link:https://github.com/solana-labs/solana-program-library/security/advisories/new,mailto:[email protected],discord:https://discord.gg/solana",
31+
policy: "https://github.com/solana-labs/solana-program-library/blob/master/SECURITY.md",
32+
33+
// Optional Fields
34+
preferred_languages: "en",
35+
source_code: "https://github.com/solana-labs/solana-program-library/tree/master/token/program-2022",
36+
source_revision: "79a575fb7af56d26deeda94fef8f55bde7a90df3",
37+
source_release: "token-2022-v0.9.0",
38+
auditors: "https://github.com/solana-labs/security-audits#token-2022"
39+
}

0 commit comments

Comments
 (0)