DEV Community

Binh Nguyen
Binh Nguyen

Posted on

2

Snyk Container: GitLab Container Registry easy integration

Prerequisites

  1. Snyk account: Organization's Administrator.
  2. GitLab project personal access token.
    • It is recommended to use access token instead of password.
    • If you enabled MFA, the personal access token is a MUST.

Integration

Create a Personal Access Token

Please ensure that your token meets the following requirements:

  1. role: at least Developer
  2. scopes:
    • read_api
    • read_registry

Configure Integration

  1. At the left navigation bar, go to Settings.
  2. Under Organization Settings, go to Integrations.
  3. Find GitLab Container Registry, under Container Registries section.
  4. From the Account credentials box, we have to input:
    1. Username: <your-gitlab-username>
    2. Password: <your-gitlab-access-token>
    3. Container registry name: registry.gitlab.com
  5. Then click the save changes button.

gitlab-container-registry-integration

Add project for scanning

  1. At the left navigation bar, go to Projects.
  2. Click the Add projects button.
  3. From the Image Name box, we input our project URL as follows:
<namespace>/<project>/<image>
Enter fullscreen mode Exit fullscreen mode

References

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs