feat: allow groups to be specified without a project #443
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change allows users to specify a group without also specifying a corresponding project. Neither the project nor the group needs to exist beforehand. The group will now be created if it does not already exist.
This behavior is useful for those users with many projects and a desire to provide analysis results in the context of organizational groups. They can now specify a single CI configuration to use across the enterprise and everything will be named and created automatically and consistently.
Additionally, the values for project and group are now allowed to be "mixed" between what is specified on the command line and anything found in a
.phylum_project
file. This "mixing" was specifically denied previously but allowed now with a warning to let users know that may be an unexpected combination.The group name is still optional and can be specified on the command line. It can also be specified in the
.phylum_project
file. The value specified with the option takes precedence when both are provided.Other changes made include:
--group
option to each integration.phylum_project
file to usedepfiles
instead oflockfiles
PROJECT_ALREADY_EXISTS
toALREADY_EXISTS
Testing
The changes in this branch are available in the
maxrake/phylum-ci
Docker image, with themixed_groups
tag.Testing was performed locally, to include all the new combinations of project and group submissions. Screenshots and log output can be provided, if desired.