Skip to content

feat: .trivyignore allow import / export from / to project via gitlab API #487

Description

@childnode

getting a .trivyignore generated is cool but what about the cases

I already have a .trivyignore file and I want to

  • filter the findings dependend on this ignore list
  • find which ignores can be removed
  • merge back the new ignore file

I can think of getting s.th. like:

  1. a load from project button predefined (project HTTPS URL is given, PAT can be used)
  2. paste a ignore file I actually have
  3. with 1): hit a button to jump back to the single file editor on gitlab with the changed file content
    btw. yes it's that easy to add &content=test1%0Atest2 to the ${GITLAB_PROJECT_URL}/-/edit/main/.trivyignore?ref_type=heads&content=test1%0Atest2 resp. creating it by /-/new/main?file_name=.trivyignore&content=test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions