Separating projects by branch or version
This feature is currently in Open Beta. There will be areas where it is not fully supported.
Sometimes your project might have multiple states which you want to monitor separately. These could be branches, releases, deployments and so on. You can use --target-reference to separate projects into these specific groupings.
--target-reference takes any text so you can combine it with another command to automatically set it to a value. For example, below is a script that when executed will set --target-reference to the current Git branch.
1
snyk monitor --target-reference="$(git branch --show-current)"
Copied!
Similarly if you'd like to use the latest Git tag you can use:
1
snyk monitor --target-reference="$(git describe --tags --abbrev=0)"
Copied!
Adjust the command to your liking using whichever developer tools your project uses.
--target-reference will be used for sub-groupings in the Projects page.
A project grouping with sub-groups.
Last modified 3d ago
Export as PDF
Copy link