-
Notifications
You must be signed in to change notification settings - Fork 74
Use GitLab Token for License Check #977
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
Use GitLab Token for License Check #977
Conversation
0a93d98 to
af146d9
Compare
.github/workflows/licensecheck.yml
Outdated
| - name: License check | ||
| run: | | ||
| mvn -U -V -e -B -ntp org.eclipse.dash:license-tool-plugin:license-check --file pom.xml | ||
| mvn -U -V -e -B -ntp org.eclipse.dash:license-tool-plugin:license-check --file pom.xml -Ddash.projectId=tools.wildwebdeveloper -Ddash.iplab.token=${{ secrets.GITLAB_API_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's worth also using this change to enable the common license check action, as done in Tycho and m2e: https://github.com/eclipse-tycho/tycho/blob/master/.github/workflows/licensecheck.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
It's just that I'm not sure if the token really works... The dash.iplab.token argument was accepted for sure because the Dash Licence plugin reported on that IPTeam issues are already exist:
[INFO] A review request already exists https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/5062 .
...
[INFO] A review request already exists https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/5063 .
But it never tried to create an issue yet, so I don't know yet if the argument value is really accepted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I'm not sure about is secret name I've used... The guide and examples (like https://github.com/eclipse-tycho/tycho/blob/master/.github/workflows/licensecheck.yml) stay on adding a project name to the token (like TYCHO_GITLAB_API_TOKEN, for example), while Frederic states he created GITLAB_API_TOKEN (NOT prefixed with the WWD project name). Probably I'm missing something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we probably have to add the token usage to NPM dependencies check in #967
af146d9 to
2f54e4b
Compare
|
@mickaelistria The common license check added like this: finds the same two not resolved artifacts (so, it looks like we're double checking them) but with two differences:
There is |
|
Your command is not hooked to anything in licensecheck.yml thus nothign will happen for /request-license-review . It is handled at https://github.com/eclipse/dash-licenses/blob/master/.github/actions/maven-license-check-action/action.yml#L29 so using it will have effect. |
@akurtakov aren't we using it when we invoke the following job at https://github.com/eclipse/wildwebdeveloper/pull/977/files#diff-214dc48999f71aa20bbf3110511b812571737db7a5da2e71a94d16c55255c08fR40: ? |
2f54e4b to
5f6d4ea
Compare
The idea is to replace the custom |
5f6d4ea to
028efaa
Compare
So, we should remove the 'build` job as result, right? How can I make sure that the dependency list generated in the |
Yes, the 'build' job would "only" build and test; and reviewing the license would be another workflow (like it's done in Tycho and m2e). This becomes easier to maintain and review.
You don't have to make sure of that, but only to trust the GitHub workflow (Which is becoming the standard approach recommended by CBI). |
|
/request-license-review |
028efaa to
40ca81c
Compare
|
/request-license-review |
|
Again "/request-license-review" is not likely to work before the change is merged. A 1st iteration is to make the GitHub workflow use the CBI one; then we'll see if /request-license-review can work with it. |
40ca81c to
3e72339
Compare
|
@mickaelistria OK. Then I'm going to merge the change that replaces the |
3e72339 to
0ed7420
Compare
No description provided.