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

Introduce a new vet subcommand #352

Open
Dentrax opened this issue Aug 21, 2023 · 0 comments
Open

Introduce a new vet subcommand #352

Dentrax opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request needs-triage applied to all new customer/user issues. Removed after triage occurs.

Comments

@Dentrax
Copy link
Member

Dentrax commented Aug 21, 2023

Description

Idea is to create a new vet (or something else) subcommand to run some vetting pipeline for the given apko or melange manifest just before sending to PR. Motivation is to boost local development productivity so we don't waste time on the CI by waiting. Moreover, this would be a CLI version of Wolfi workflows.

Example Usage:

wolfictl vet my-melange-manifest.yaml

We (w/ @developer-guy) thought that we can introduce a new vet subcommand that can do:

  • Identify the given manifest (whether its melange or apko)

  • Run format check: wolfictl lint yam

  • Run lint check: wolfictl lint

  • Run update check: wolfictl check update

  • Run melange pipeline: (optional)

    • melange keygen, if its first run or keys does not exist
    • Check if all packages are exist on the Wolfi repo
    •  Run melange build with args/flags using Docker/Lima/etc
    • Export generated .apk to temp dir
      • Run CVE scans with Grype/Trivy
  • For apko pipeline: (optional)

    • Check if all packages are exist on the Wolfi repo
    • Run terraform fmt
    • Run apko build
    • Run CVE scans with Grype/Trivy
@Dentrax Dentrax added enhancement New feature or request needs-triage applied to all new customer/user issues. Removed after triage occurs. labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage applied to all new customer/user issues. Removed after triage occurs.
Projects
None yet
Development

No branches or pull requests

2 participants