Skip to content

Commit 7bfe452

Browse files
reeshika-hclaude
andcommitted
fix: suppress Snyk hardcoded-secret false positive in bundler test fixtures
Test fixtures use placeholder API keys/tokens, not real secrets. Add inline deepcode ignore annotations so Snyk Code suppresses the finding at the source instead of relying on org-level web UI ignores. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent b7d4e2e commit 7bfe452

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

test/bundlers/esbuild-app/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const regions = [
5353
regions.forEach(({ name, check }) => {
5454
test(`SDK works with ${name} region`, () => {
5555
const stack = contentstack.stack({
56+
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
5657
apiKey: 'test_key',
5758
deliveryToken: 'test_token',
5859
environment: 'test',

test/bundlers/rollup-app/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const regions = [
5353
regions.forEach(({ name, check }) => {
5454
test(`SDK works with ${name} region`, () => {
5555
const stack = contentstack.stack({
56+
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
5657
apiKey: 'test_key',
5758
deliveryToken: 'test_token',
5859
environment: 'test',

0 commit comments

Comments
 (0)