From: Jay Cho Date: Mon, 6 Nov 2023 13:56:12 +0000 (+0900) Subject: [Actions] Update token to fine-grained (#5716) X-Git-Tag: submit/tizen/20231107.051024~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ab8c8e0cd30bd40cd6dbddb35411a4fe572a067;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Actions] Update token to fine-grained (#5716) --- diff --git a/.github/workflows/build-branches.yml b/.github/workflows/build-branches.yml index a92c8ad94..74f7cfc3d 100644 --- a/.github/workflows/build-branches.yml +++ b/.github/workflows/build-branches.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v3 with: repository: TizenAPI/tizenfx-api-specs - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} path: .apispec - name: Push to APISpec diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 2bad9f9ba..caf1d17f9 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -36,7 +36,7 @@ jobs: TARGETS: ${{ steps.find-targets.outputs.targets }} WORKFLOW_NAME: 'Deploy Packages' with: - github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} script: | var resp = await github.request('GET /repos/{owner}/{repo}/actions/workflows', { owner: context.repo.owner, diff --git a/.github/workflows/postback-pull-request.yml b/.github/workflows/postback-pull-request.yml index 0841b00a3..0df33488e 100644 --- a/.github/workflows/postback-pull-request.yml +++ b/.github/workflows/postback-pull-request.yml @@ -14,7 +14,7 @@ jobs: - name: Download Artifacts from Build uses: TizenAPI/tizenfx-build-actions/download-workflow-artifacts@master with: - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} run-id: ${{ github.event.workflow_run.id }} name: reports path: Artifacts @@ -45,7 +45,7 @@ jobs: env: PR_NUMBER: ${{ steps.pull_request.outputs.number }} with: - github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} script: | const fs = require('fs'); const json = fs.readFileSync('Artifacts/errors.json', 'utf8'); @@ -61,6 +61,6 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: TizenAPI/tizenfx-build-actions/apidb-report@master with: - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} issue-number: ${{ steps.pull_request.outputs.number }} path: Artifacts/api-comp.json