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

Feat/add snyk #959

Merged
merged 11 commits into from
Jan 23, 2025
Merged

Feat/add snyk #959

merged 11 commits into from
Jan 23, 2025

Conversation

fsargent
Copy link
Contributor

@fsargent fsargent commented Jan 15, 2025

Add snyk cli for security scans.

As of 2025-01-20 I can't get this to test properly locally because it says snyk isn't enabled. Not sure what might be misconfigured that's causing that. Would love help.

Copy link

trunk-io bot commented Jan 15, 2025

⏱️ 1h 54m total CI duration on this PR
Job Cumulative Duration Recent Runs
Windows Linter Tests 1h 3m 🟩🟩🟩🟩 (+3 more)
Linter Tests macOS 14m 🟩🟩🟩🟩🟩 (+3 more)
Linter Tests ubuntu-latest 14m 🟩🟩🟩🟩🟩 (+3 more)
CodeQL-Build 12m 🟩🟩🟩🟩🟩 (+3 more)
Trunk Check runner [linux] 6m 🟩🟩🟩🟩🟩 (+3 more)
Repo Tests / Plugin Tests 4m 🟩🟩🟩🟩🟩 (+3 more)
Detect changed files 40s 🟩🟩🟩🟩🟩 (+3 more)
Aggregate Test Results 1s 🟩🟩🟩🟩🟩 (+3 more)

settingsfeedbackdocs ⋅ learn more about trunk.io

@fsargent fsargent marked this pull request as draft January 15, 2025 10:26
@fsargent fsargent marked this pull request as ready for review January 20, 2025 16:29
// You know password for the user.
{name: 'user', password: 'pwd'},
// You don't know password for the admin.
{name: 'admin', password: Math.random().toString(32), canDelete: true},

Check failure

Code scanning / CodeQL

Insecure randomness

This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context.
linters/snyk/test_data/index.js Dismissed Show dismissed Hide dismissed
@TylerJang27
Copy link
Collaborator

Hi @fsargent! Thanks for the PR! Sorry for the delay in reviewing, I will take a look later today

@TylerJang27
Copy link
Collaborator

Thanks for the PR! I've added some setup and test data to your PR to match some of our best practices. Please let me know if the result looks good to you, and I can merge this!

@fsargent
Copy link
Contributor Author

fsargent commented Jan 23, 2025

Thank you! You did more of the hard work than I did! It looks great.

Copy link
Collaborator

@TylerJang27 TylerJang27 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the PR!

@TylerJang27 TylerJang27 merged commit 0c95fa9 into trunk-io:main Jan 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants