Skip to content
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
1 change: 1 addition & 0 deletions portcullis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func TestContainsRecognisesKnownTokens(t *testing.T) {
{"flutterwave_live_secret", "FLWSECK-" + strings.Repeat("a", 32) + "-X"},
{"slack_workflow_webhook", "https://hooks.slack.com/workflows/T" + strings.Repeat("A", 10) + "/A" + strings.Repeat("B", 10) + "/" + strings.Repeat("1", 18) + "/" + strings.Repeat("a", 24)},
{"sourcegraph_cody_key", "slk_" + strings.Repeat("a", 64)},
{"daytona_api_key", "dtn_" + strings.Repeat("a", 64)},
// GitHub App stateless installation token (post-2026 rollout).
// `ghs_` prefix + JWT (header.payload.signature). Built at
// runtime so the literal token never sits on a single source
Expand Down
6 changes: 6 additions & 0 deletions rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,12 @@ var rules = sync.OnceValue(func() []rule {
expression: `slk_[a-f0-9]{64}`,
keywords: []string{"slk_"},
},
{
// daytona-api-key. Daytona API keys carry the `dtn_`
// prefix followed by a 64-character lowercase-hex body.
expression: `dtn_[a-f0-9]{64}`,
keywords: []string{"dtn_"},
},
}
})

Expand Down