File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 secrets :
1818 SONAR_TOKEN :
1919 required : false
20+ GITHUB_TOKEN :
21+ required : true
2022
2123env :
2224 SONAR_ORGANIZATION : ${{ secrets.SONAR_ORGANIZATION || 'aim42' }}
2527
2628jobs :
2729 build :
30+ env :
31+ DOCKER_USERNAME : ${{ github.repository_owner }}
32+ DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
2833 runs-on : ubuntu-latest
2934 steps :
3035 - name : Check out
Original file line number Diff line number Diff line change 2121 with :
2222 # SonarQube requires JDK 17 or higher
2323 java-version : ' 17'
24+ secrets :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2426
2527 pages :
2628 needs : build-artifacts
Original file line number Diff line number Diff line change 1515
1616jobs :
1717 build-artifacts :
18+ permissions :
19+ packages : write
20+ contents : read
1821 uses : ./.github/workflows/build-artifacts.yml
1922 with :
2023 # SonarQube requires JDK 17 or higher
2326 push-docker-sha : true
2427 secrets :
2528 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2630
2731 test-gh-action :
2832 needs : build-artifacts
Original file line number Diff line number Diff line change 1313 with :
1414 # SonarQube requires JDK 17 or higher
1515 java-version : ' 17'
16+ secrets :
17+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1618
1719 test-java-os-mix :
1820 needs : build-artifacts
You can’t perform that action at this time.
0 commit comments