From 6e2ba730d4e931088e2ddceb9b11bdd57f0d08d0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 10 Oct 2022 16:51:24 -0500 Subject: [PATCH] use admin github token --- .github/workflows/prep-release.yml | 4 +--- .github/workflows/publish-release.yml | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prep-release.yml b/.github/workflows/prep-release.yml index 7cc79bf036..7a2a18de75 100644 --- a/.github/workflows/prep-release.yml +++ b/.github/workflows/prep-release.yml @@ -21,8 +21,6 @@ on: type: boolean jobs: prep_release: - permissions: - contents: write runs-on: ubuntu-latest steps: - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 @@ -31,7 +29,7 @@ jobs: id: prep-release uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} version_spec: ${{ github.event.inputs.version_spec }} post_version_spec: ${{ github.event.inputs.post_version_spec }} target: ${{ github.event.inputs.target }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index cb63923550..dbaaeaad24 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -15,8 +15,6 @@ on: jobs: publish_release: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 @@ -24,7 +22,7 @@ jobs: id: populate-release uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} target: ${{ github.event.inputs.target }} branch: ${{ github.event.inputs.branch }} release_url: ${{ github.event.inputs.release_url }} @@ -39,7 +37,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} target: ${{ github.event.inputs.target }} release_url: ${{ steps.populate-release.outputs.release_url }}