A tool to automate the submission of Gitlab and Github projects to Phylum
Syringe expects several environment variables to be properly configured:
SYRINGE_VCS
: "github" | "gitlab" | "azure"PHYLUM_API_KEY
: A token to access the Phylum APIPHYLUM_GROUP_NAME
: The name of the Phylum Group to which Syringe project submissions will be correlated. This group must exist before it can be used.
To configure for Gitlab, ensure the following environment variables are properly configured:
SYRINGE_VCS_TOKEN_GITLAB
: A token to access the Gitlab APISYRINGE_GITLAB_URL
: The fully-qualified domain name of the GitLab server. Defaults tohttps://gitlab.com
To configure for Github, ensure the following environment variables are properly configured:
SYRINGE_VCS_TOKEN_GITHUB
: A token to access the Github APISYRINGE_GITHUB_URL
: The fully-qualified domain name of the Github server. Defaults tohttps://github.com
To configure for Azure Devops, ensure the following environment variables are properly configured:
SYRINGE_VCS_TOKEN_AZURE
: A token to access the Azure Dev Ops APISYRINGE_AZURE_ORG
: The fully-qualified domain name of the Azure Dev Ops organization. Example: https://dev.azure.com/pete0372
- Ensure Phylum is installed and configured
- Checkout this repository
- Build
Syringe
with:go build -o Syringe
- Configure the environment variables listed above
- Examine the subcommands for
Syringe
by running it - Execute
Syringe list-projects
to list the projects Syringe can see with the token and configuration provided. - Execute
Syringe run-phylum
to submit the identified projects to Phylum for viewing the Phylum Web UI