[issue-1990] - Add github token (#1991)

This commit is contained in:
Pere Miquel Brull 2022-01-04 19:05:09 +01:00 committed by GitHub
parent 8a390d4dbb
commit 4bc41e2021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,11 @@ jobs:
java-version: 11
- name: Build PR with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'pull_request' }}
run: |
git fetch --no-tags https://github.com/open-metadata/OpenMetadata.git +refs/heads/main:refs/remotes/origin/main
mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
@ -59,5 +62,7 @@ jobs:
-Dsonar.pullrequest.provider=github clean install
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'push' }}
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean install