diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index e5eb3bb..dea8dab 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -21,4 +21,4 @@ jobs: uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.LIVRO_LIVRE_SONAR_TOKEN }} diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index d62995d..fda0341 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -24,13 +24,13 @@ jobs: - name: Cria arquivo .env run: | touch ./sonar_scripts/.env - echo GITHUB_TOKEN=${{ secrets.API_TOKEN_GITHUB }} >> ./sonar_scripts/.env + echo GITHUB_TOKEN=${{ secrets.LIVRO_LIVRE_API_TOKEN_GITHUB }} >> ./sonar_scripts/.env echo RELEASE_MAJOR=${{ contains(github.event.pull_request.labels.*.name, 'MAJOR RELEASE') }} >> ./sonar_scripts/.env echo RELEASE_MINOR=${{ contains(github.event.pull_request.labels.*.name, 'MINOR RELEASE') }} >> ./sonar_scripts/.env echo RELEASE_FIX=${{ contains(github.event.pull_request.labels.*.name, 'FIX RELEASE') }} >> ./sonar_scripts/.env echo DEVELOP=${{ contains(github.event.pull_request.labels.*.name, 'DEVELOP') }} >> ./sonar_scripts/.env echo REPO=${{ github.event.repository.name }} >> ./sonar_scripts/.env - echo REPO_DOC=${{ secrets.REPO_DOC }} >> ./sonar_scripts/.env + echo REPO_DOC=${{ secrets.LIVRO_LIVRE_REPO_DOC }} >> ./sonar_scripts/.env - name: Criar diretório run: mkdir -p analytics-raw-data @@ -40,9 +40,9 @@ jobs: - name: Envia métricas para repo de Docs run: | - git config --global user.email "${{secrets.USER_EMAIL}}" - git config --global user.name "${{secrets.USER_NAME}}" - git clone --single-branch --branch main "https://x-access-token:${{ secrets.API_TOKEN_GITHUB }}@github.com/fga-eps-mds/${{ secrets.REPO_DOC }}" doc + git config --global user.email "${{secrets.LIVRO_LIVRE_USER_EMAIL}}" + git config --global user.name "${{secrets.LIVRO_LIVRE_USER_NAME}}" + git clone --single-branch --branch main "https://x-access-token:${{ secrets.LIVRO_LIVRE_API_TOKEN_GITHUB }}@github.com/fga-eps-mds/${{ secrets.LIVRO_LIVRE_REPO_DOC }}" doc mkdir -p doc/analytics-raw-data cp -R analytics-raw-data/*.json doc/analytics-raw-data cd doc