Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbe83f7

Browse files
authored
ci(publish): make contents write and fix secrets reference
Signed-off-by: Ewan Harris <[email protected]>
1 parent c4700e4 commit cbe83f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
### TODO: Also remove `get-prerelease`, `get-version`, `release-create`, `tag-create` and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
1111

1212
permissions:
13-
contents: read
13+
contents: write
1414
id-token: write # Required for trusted publishing to PyPI
1515

1616
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
- id: get_release_notes
4343
uses: ./.github/actions/get-release-notes
4444
with:
45-
token: ${{ secrets.github-token }}
45+
token: ${{ secrets.GITHUB_TOKEN }}
4646
version: ${{ steps.get_version.outputs.version }}
4747
repo_owner: ${{ github.repository_owner }}
4848
repo_name: ${{ github.event.repository.name }}
@@ -52,7 +52,7 @@ jobs:
5252
uses: ./.github/actions/tag-exists
5353
with:
5454
tag: ${{ steps.get_version.outputs.version }}
55-
token: ${{ secrets.github-token }}
55+
token: ${{ secrets.GITHUB_TOKEN }}
5656

5757
# If the tag already exists, exit with an error
5858
- if: steps.tag_exists.outputs.exists == 'true'
@@ -83,9 +83,9 @@ jobs:
8383
# Create a release for the tag
8484
- uses: ./.github/actions/release-create
8585
with:
86-
token: ${{ secrets.github-token }}
86+
token: ${{ secrets.GITHUB_TOKEN }}
8787
name: ${{ steps.get_version.outputs.version }}
8888
body: ${{ steps.get_release_notes.outputs.release-notes }}
8989
tag: ${{ steps.get_version.outputs.version }}
9090
commit: ${{ github.sha }}
91-
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}
91+
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}

0 commit comments

Comments
 (0)