Skip to content
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

Merged
merged 1 commit into from
Dec 17, 2024
Merged

migrate to pino #153

merged 1 commit into from
Dec 17, 2024

Conversation

bjohansebas
Copy link
Contributor

fixes: #132

@bjohansebas bjohansebas force-pushed the pinojs branch 2 times, most recently from 7b6257f to 7c73879 Compare December 16, 2024 23:18
Copy link

socket-security bot commented Dec 16, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/pino-pretty@13.0.0 environment Transitive: filesystem +18 822 kB matteo.collina
npm/pino@9.5.0 environment, unsafe Transitive: eval, filesystem +12 1.19 MB matteo.collina

View full report↗︎

@@ -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)
Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Member

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.

@bjohansebas bjohansebas marked this pull request as ready for review December 16, 2024 23:24
@bjohansebas
Copy link
Contributor Author

Is there any reason why the CI is not running?

@UlisesGascon
Copy link
Member

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 👍

@UlisesGascon UlisesGascon merged commit dd2143f into OpenPathfinder:main Dec 17, 2024
3 checks passed
@bjohansebas bjohansebas deleted the pinojs branch December 17, 2024 20:30
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.

Logger Migration to Pino
2 participants