From dda7f49c6539ee8dde6443b9b330d6fce6739b4a Mon Sep 17 00:00:00 2001 From: harpsealjs Date: Tue, 7 May 2024 15:56:31 +0800 Subject: [PATCH] chore: remove tokens (#6460) * chore: remove tokens * chore: remove tokens --- .github/workflows/ci.yml | 4 ++-- .github/workflows/diff.yml.bak | 2 +- .github/workflows/ecosystem-ci-trigger.yml | 2 +- .github/workflows/github-issue-sync.yml | 2 +- .github/workflows/release-nightly.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3964200cde7..5e829333ae5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -316,7 +316,7 @@ jobs: owner: ${{ github.repository_owner }} repo: "rspack-ecosystem-benchmark" workflow_file_name: "bench_rspack_commit.yml" - github_token: ${{ secrets.RSPACK_BOT_ACCESS_TOKEN }} + github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }} ref: "main" client_payload: '{"commit_sha":"${{ github.sha }}"}' @@ -333,7 +333,7 @@ jobs: owner: ${{ github.repository_owner }} repo: "rspack-ecosystem-ci" workflow_file_name: "ecosystem-ci-from-commit.yml" - github_token: ${{ secrets.ECOSYSTEM_CI_ACCESS_TOKEN }} + github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }} ref: "main" client_payload: '{"commitSHA":"${{ github.sha }}","repo":"web-infra-dev/rspack","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}' diff --git a/.github/workflows/diff.yml.bak b/.github/workflows/diff.yml.bak index ff135e318fb..f6c3922fe94 100644 --- a/.github/workflows/diff.yml.bak +++ b/.github/workflows/diff.yml.bak @@ -61,7 +61,7 @@ jobs: - name: Upload Report shell: bash env: - API_TOKEN_GITHUB: ${{ secrets.RSPACK_REPORT_ACCESS_TOKEN }} + API_TOKEN_GITHUB: ${{ secrets.RSPACK_ACCESS_TOKEN }} run: | cache_dir="$HOME/.cache/diff_upload" clone_dir="$cache_dir/${{ github.run_id }}" diff --git a/.github/workflows/ecosystem-ci-trigger.yml b/.github/workflows/ecosystem-ci-trigger.yml index 59ed85abb4d..e2cc78d13c0 100644 --- a/.github/workflows/ecosystem-ci-trigger.yml +++ b/.github/workflows/ecosystem-ci-trigger.yml @@ -65,7 +65,7 @@ jobs: env: COMMENT: ${{ github.event.comment.body }} with: - github-token: ${{ secrets.ECOSYSTEM_CI_ACCESS_TOKEN }} + github-token: ${{ secrets.RSPACK_ACCESS_TOKEN }} result-encoding: string script: | const comment = process.env.COMMENT.trim() diff --git a/.github/workflows/github-issue-sync.yml b/.github/workflows/github-issue-sync.yml index f7ad3855d67..387e7607dfe 100644 --- a/.github/workflows/github-issue-sync.yml +++ b/.github/workflows/github-issue-sync.yml @@ -19,7 +19,7 @@ jobs: # This is a Personal Access Token and it needs to have the following permissions # - "read:org": used to read the project's board # - "write:org": used to assign issues to the project's board - PROJECT_TOKEN: ${{ secrets.PROJECT_TOKEN }} + PROJECT_TOKEN: ${{ secrets.RSPACK_ACCESS_TOKEN }} # The number of the project which the issues will be synced to # You can find this in https://github.com/orgs/@ORGANIZATION/projects/ project: 12 diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 9649e1b4e8c..18841feda91 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -94,7 +94,7 @@ jobs: steps: - uses: actions/github-script@v7 with: - github-token: ${{ secrets.ECOSYSTEM_CI_ACCESS_TOKEN }} + github-token: ${{ secrets.RSPACK_ACCESS_TOKEN }} script: | const result = await github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner,