fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.29k stars 173 forks source link

Make "invalid project permission" error message clearer #1475

Closed ryanlink closed 1 month ago

ryanlink commented 1 month ago

This adds detail on how to fix "invalid project permission" error.

Overview

We get a lot of support tickets from team admins/editors getting "invalid project permission" who don't understand that they need to specify a team with fossa analyze. This makes resolving the error clearer to the end user to reduce support ticket volume.

Acceptance criteria

This adds explanation to the error message, instructing the user to add --team 'team-name' to the command or specify a team in the .fossa.yml.

Testing plan

I have not tested this as I haven't yet built fossa-cli locally. A reviewer could build this locally and test that the error message looks OK when trying to analyze a project as a team admin without specifying a team name. Otherwise, it's a straightforward text change.

Risks

I haven't tested that the longer error message looks OK in the command output.

Metrics

References

Checklist