Skip to content

Create snyk-container.yml#127

Merged
Dargon789 merged 1 commit intomasterfrom
Dargon789-patch-3
Oct 15, 2025
Merged

Create snyk-container.yml#127
Dargon789 merged 1 commit intomasterfrom
Dargon789-patch-3

Conversation

@Dargon789
Copy link
Copy Markdown
Owner

@Dargon789 Dargon789 commented Oct 15, 2025

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Summary by Sourcery

Introduce a Snyk Container CI workflow that builds the project’s Docker image, runs vulnerability scans, and integrates the results into GitHub Code Scanning

CI:

  • Add GitHub Actions workflow to build Docker images, scan them for vulnerabilities using Snyk, and upload SARIF results to GitHub Code Scanning
  • Trigger Snyk Container workflow on pushes, pull requests to master, and via a weekly schedule

Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
@vercel vercel bot temporarily deployed to Preview – next October 15, 2025 02:54 Inactive
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next Ready Ready Preview Comment Oct 15, 2025 2:54am
react Ready Ready Preview Comment Oct 15, 2025 2:54am

@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Oct 15, 2025

Reviewer's Guide

This PR introduces a new GitHub Actions workflow that automates building a Docker image, scanning it for vulnerabilities with Snyk, and uploading the results to GitHub Code Scanning on pushes, pull requests to master, and a weekly schedule.

Sequence diagram for Snyk container workflow execution

sequenceDiagram
  participant GitHub
  participant ActionsRunner
  participant Docker
  participant Snyk
  participant CodeScanning
  GitHub->>ActionsRunner: Trigger workflow (push, PR, or schedule)
  ActionsRunner->>ActionsRunner: Checkout code
  ActionsRunner->>Docker: Build image
  ActionsRunner->>Snyk: Scan image for vulnerabilities
  Snyk-->>ActionsRunner: Return SARIF results
  ActionsRunner->>CodeScanning: Upload SARIF results
Loading

File-Level Changes

Change Details Files
Add Snyk container scanning workflow
  • Configured workflow triggers for push, pull_request on master, and a weekly cron schedule
  • Set permissions for contents, security-events, and actions
  • Added steps to checkout code and build the Docker image
  • Integrated snyk/actions/docker to scan the image with continue-on-error
  • Uploaded scan results as SARIF using github/codeql-action/upload-sarif
.github/workflows/snyk-container.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@vercel vercel bot temporarily deployed to Preview – react October 15, 2025 02:54 Inactive
@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Oct 15, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Dargon789 Dargon789 merged commit d39b7a5 into master Oct 15, 2025
16 of 18 checks passed
@Dargon789 Dargon789 deleted the Dargon789-patch-3 branch October 15, 2025 04:39
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