-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate to pino #153
migrate to pino #153
Conversation
7b6257f
to
7c73879
Compare
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
@@ -65,7 +65,6 @@ const performScorecardAnalysis = async (repo) => { | |||
const start = new Date().getTime() | |||
const { stdout, stderr } = await exec(`docker run -e GITHUB_AUTH_TOKEN=${process.env.GITHUB_TOKEN} --rm ${ossfScorecardSettings.dockerImage} --repo=${repo.html_url} --show-details --format=json`) | |||
if (stderr) { | |||
console.error(stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not possible to parse a string, so the best option would be to remove this to prevent a token leak.
Or maybe I haven't found the option yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there is redact
to do that, but it only works at the object level, or that's the only way it has worked correctly for me.
https://github.com/pinojs/pino/blob/main/docs/redaction.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right! Let me see if I can use a hook for this, as the token pattern is clear.
Is there any reason why the CI is not running? |
I was using a preview version an seems like there is a bug https://github.com/orgs/community/discussions/143787#discussioncomment-11593095. The CI is passing now 👍 |
fixes: #132