Revert "[Actions] Update token to fine-grained (#5716)" (#5755)
authorJay Cho <chojoong@gmail.com>
Thu, 16 Nov 2023 08:40:47 +0000 (17:40 +0900)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 08:40:47 +0000 (17:40 +0900)
This reverts commit 2ab8c8e0cd30bd40cd6dbddb35411a4fe572a067.

.github/workflows/build-branches.yml
.github/workflows/nightly-release.yml
.github/workflows/postback-pull-request.yml

index 74f7cfc..a92c8ad 100644 (file)
@@ -44,7 +44,7 @@ jobs:
       uses: actions/checkout@v3
       with:
         repository: TizenAPI/tizenfx-api-specs
-        token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }}
+        token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
         path: .apispec
     
     - name: Push to APISpec
index caf1d17..2bad9f9 100644 (file)
@@ -36,7 +36,7 @@ jobs:
         TARGETS: ${{ steps.find-targets.outputs.targets }}
         WORKFLOW_NAME: 'Deploy Packages'
       with:
-        github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }}
+        github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
         script: |
           var resp = await github.request('GET /repos/{owner}/{repo}/actions/workflows', {
             owner: context.repo.owner,
index 0df3348..0841b00 100644 (file)
@@ -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_FINEGRAINED }}
+        token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
         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_FINEGRAINED }}
+        github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
         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_FINEGRAINED }}
+        token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
         issue-number: ${{ steps.pull_request.outputs.number }}
         path: Artifacts/api-comp.json