Skip to content

Maven Plugin: Allow to read NVD API Key from environment variable #6443

@kwin

Description

@kwin

Currently the NVD API key can be passed as direct plugin parameter nvdApiKey or as server id to be extracted from the settings.xml (nvdApiServerId). The former has the disadvantage that it may be appear in the Maven logs and the latter has the disadvantage that it requires you to duplicate the credentials for CI/CD (where usually the settings.xml is ephemeral and therefore the canonical storage is somewhere else).

As environment variables are the common means for passing secrets (at least for container environments like e.g. used in GitHub Actions) it should also be supported to extract the NVD API key from a configured environment variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions