Skip to content

Secrets validated pr comment#6

Open
stuartcmehrens wants to merge 1 commit intomasterfrom
add-secrets-pr-validated-example
Open

Secrets validated pr comment#6
stuartcmehrens wants to merge 1 commit intomasterfrom
add-secrets-pr-validated-example

Conversation

@stuartcmehrens
Copy link

No description provided.

const fetch = require('node-fetch');

const SEMGREP_BASE_URL = 'https://semgrep.dev/api/'
const SEMGREP_APP_TOKEN = 'a7d6329a5bb0bd4100bdb73f61fde8b5cb8778887575e541e1b8897b3d48d01c'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded sensitive data leaked

Semgrep has detected a leak of sensitive data in this code. This secret data could be used by internal or external malicious actors. We highly recommend you change, reset, or rotate the sensitive data.

A secret is hard-coded in the application. Secrets stored in source code, such as credentials, identifiers, and other types of sensitive data, can be leaked and used by internal or external malicious actors. It is recommended to rotate the secret and retrieve them from a secure secret vault or Hardware Security Module (HSM), alternatively environment variables can be used if allowed by your company policy.

Ignore this finding from semgrep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant