Commit b818803
Generate license summary even without a GitLab token
Dependabot and fork pull requests don't have access to the
GITLAB_API_TOKEN secret. Passing an empty token to dash-licenses made
it consume the package-lock.json path as the token value, producing a
usage error and no review summary.
Only pass -review/-project/-token when a token is present. Without a
token the tool still runs and writes the summary of unvetted
dependencies, which the reporting step then comments on the PR and
fails the run for.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1ce6627 commit b818803
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments