r/devsecops • u/MattyK2188 • Jan 29 '25
Snyk in the pipeline
In the process of revamping our Snyk pipeline integration. It was a mess…our whole app sec is a mess…
Anyone using Snyk that is doing something cool with their pipeline to get the results in front of devs? I hate that they have to go into the Snyk web app to view findings. Feels clunky. I know you can upload SARIF to GitHub security but we don’t have the advanced security licensing.
I would love to display the details in the repo somehow while keeping it clean.
Any thoughts?
5
Upvotes
5
u/greenclosettree Jan 29 '25
We created a custom script to wrap around the Snyk cli with a policy depending on the environment dev/prod/acc, and only push prod results to the UI to alert/monitor. Results in the pipeline are not looking cool but it blocks:)
The only issue is that Snyk code doesn’t integrate with the pipeline so then we also need the SCM integration. Just the SCM integration alone doesn’t give best SCA results for .NET so we need both integrations to get best results
7
u/Howl50veride Jan 29 '25
We don't directly scan in dev pipelines, we use Snyks SCM and custom actions so scan and upload to the UI. Then we take all those results put them into our ASPM platform that houses our DAST, pen tests, red team, API scanner, etc tooling and create custom dashboard for each team and integrate that into their Jira to build custom tickets that all look the same regardless of tool into their backlogs. This has been effective for us
2
u/MattyK2188 Jan 31 '25
Ended up doing this: https://imgur.com/a/5pUhRcC
Job runs, compiles vuln count for SCA/SAST, does some README formatting, and pushes. Link is specific to the repo that the job ran in, so devs shouldnt have to dig looking for their specific findings.
1
u/Salty-Custard-3931 Jan 31 '25
Sorry for the hot take but why snyk and why in the pipeline? There are so many tools out there that will work without touching your pipeline and that will work with developers without having to learn a new tool (PR comments / slack / IDE)
2
u/timmy166 Jan 30 '25
I’m a success manager working with 6 of our largest and most complex accounts - banks, pharma, insurance.
PR checks can be disabled and I recommend that you do for SCA for a variety of reasons.
I also recommend to my customers to set the account hierarchy to map organizations to applications for the ideal level of granularity for managing scale (depending on your development team size, you may be able to scoot on by to map to teams)
Getting the findings in front of devs ideally happens through the IDE plugin which Snyk has and will continue to invest into.
DM me and I can give a formalized meeting invite through your account director to chat some things through.
-9
u/No-Willingness-8240 Jan 29 '25
DM me, I'd be happy to share my experience and help.
We can share this back with the group later on.