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

✨ provide annotations upon registration #2039

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

preslavgerchev
Copy link
Contributor

Add support for annotations in the config, that gets generated during the login/registration.

~/go/bin/cnquery login --token <token> --annotation a=b --annotation c=d

Every asset, that gets scanned, using this config will get those annotations applied.

This PR also fixes the manually passed in annotations during the scan cmd, i.e. ~/go/bin/cnquery scan --annotation x=y.

User-provided annotations have precedence over the config ones

Copy link
Contributor

@vjeffrey vjeffrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working beautifully!

@vjeffrey vjeffrey merged commit 6f1fa5f into main Oct 3, 2023
10 checks passed
@vjeffrey vjeffrey deleted the preslav/login-annotations branch October 3, 2023 14:41
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants