Skip to content

Commit 9e9e128

Browse files
authored
Use admin token (#431)
1 parent 85a1aa9 commit 9e9e128

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/prep-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ on:
2424
type: boolean
2525
jobs:
2626
prep_release:
27-
permissions:
28-
contents: write
2927
runs-on: ubuntu-latest
3028
strategy:
3129
fail-fast: true
@@ -42,7 +40,7 @@ jobs:
4240
id: prep-release
4341
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
4442
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
43+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
4644
version_spec: ${{ github.event.inputs.version_spec }}
4745
post_version_spec: ${{ github.event.inputs.post_version_spec }}
4846
target: ${{ github.event.inputs.target }}

.github/workflows/publish-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
1717

1818
jobs:
1919
publish_release:
20-
permissions:
21-
contents: write
2220
runs-on: ubuntu-latest
2321
strategy:
2422
fail-fast: true
@@ -35,7 +33,7 @@ jobs:
3533
id: populate-release
3634
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
3735
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
36+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
3937
target: ${{ github.event.inputs.target }}
4038
branch: ${{ github.event.inputs.branch }}
4139
release_url: ${{ github.event.inputs.release_url }}
@@ -50,7 +48,7 @@ jobs:
5048
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5149
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
5250
with:
53-
token: ${{ secrets.GITHUB_TOKEN }}
51+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
5452
target: ${{ github.event.inputs.target }}
5553
release_url: ${{ steps.populate-release.outputs.release_url }}
5654

docs/source/how_to_guides/convert_repo_from_repo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ See [checklist](#Checklist-for-Adoption) below for details:
1414

1515
## Checklist for Adoption
1616

17+
- [ ] Add a [GitHub Access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with access to target GitHub repo to run GitHub Actions, saved as
18+
`ADMIN_GITHUB_TOKEN` in the [repository secrets](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository).
19+
The token needs to have `public_repo` and `repo:status` permissions.
1720
- [ ] Add access token for the [PyPI registry](https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#saving-credentials-on-github) stored as `PYPI_TOKEN`.
1821
_Note_ For security reasons, it is recommended that you scope the access
1922
to a single repository.

0 commit comments

Comments
 (0)