From 31e9324d7246d5cd61fc22fe74039f04cf54cf1e Mon Sep 17 00:00:00 2001 From: ZEXSM Date: Thu, 16 May 2024 18:28:17 +0300 Subject: [PATCH] use pat --- .github/workflows/ci-cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4c125ff..ff89768 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -7,7 +7,6 @@ on: env: DOTNET_VERSION: '3.1.x' CONFIGURATION: 'Release' - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} jobs: ci: name: build&test&coverage(${{matrix.os}}) @@ -19,6 +18,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_PAT }} - name: Setup .NET SDK ${{ matrix.dotnet-version }} uses: actions/setup-dotnet@v3 with: @@ -34,7 +35,7 @@ jobs: dotnet minicover report dotnet minicover coverallsreport --service-name "github" \ --service-job-id ${{ github.run_id }} \ - --repo-token ${{ env.COVERALLS_REPO_TOKEN }} \ + --repo-token ${{ secrets.COVERALLS_REPO_TOKEN }} \ --branch ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} \ --commit ${{ github.sha }} cd: