Skip to content

Commit b316972

Browse files
authored
Add extra_args to trufflehog to exclude unverified results (#696)
1 parent c8ff435 commit b316972

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/trufflehog.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ jobs:
77
trufflehog:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12-
with:
13-
fetch-depth: 0
14-
- name: Secret Scanning
15-
uses: trufflesecurity/trufflehog@main
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Secret Scanning
15+
uses: trufflesecurity/trufflehog@main
16+
with:
17+
extra_args: --results=verified,unknown --exclude-detectors=postgres

backends/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ impl Backend {
179179
}
180180

181181
#[instrument(skip_all)]
182-
pub fn create_warmup_batch(&self, shape: (u32, u32), max_token: u32, seq_bucket_size: u32) -> Batch {
182+
pub fn create_warmup_batch(
183+
&self,
184+
shape: (u32, u32),
185+
max_token: u32,
186+
seq_bucket_size: u32,
187+
) -> Batch {
183188
let (batch_size, length) = shape;
184189
let min_length = length.saturating_sub(seq_bucket_size).saturating_add(1);
185190
let tmp_length = if min_length < length {

0 commit comments

Comments
 (0)