mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-13 11:36:59 +00:00
[issue-1990] - Add github token (#1991)
This commit is contained in:
parent
8a390d4dbb
commit
4bc41e2021
5
.github/workflows/maven-build.yml
vendored
5
.github/workflows/maven-build.yml
vendored
@ -50,8 +50,11 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Build PR with Maven
|
- name: Build PR with Maven
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
run: |
|
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 }} \
|
mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
||||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
|
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
|
||||||
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
|
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
|
||||||
@ -59,5 +62,7 @@ jobs:
|
|||||||
-Dsonar.pullrequest.provider=github clean install
|
-Dsonar.pullrequest.provider=github clean install
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean install
|
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user