Skip to content

Commit

Permalink
ci(publish): make contents write and fix secrets reference
Browse files Browse the repository at this point in the history
Signed-off-by: Ewan Harris <ewan.harris@okta.com>
  • Loading branch information
ewanharris authored Feb 26, 2024
1 parent c4700e4 commit cbe83f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
### 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.

permissions:
contents: read
contents: write
id-token: write # Required for trusted publishing to PyPI

jobs:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- id: get_release_notes
uses: ./.github/actions/get-release-notes
with:
token: ${{ secrets.github-token }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.get_version.outputs.version }}
repo_owner: ${{ github.repository_owner }}
repo_name: ${{ github.event.repository.name }}
Expand All @@ -52,7 +52,7 @@ jobs:
uses: ./.github/actions/tag-exists
with:
tag: ${{ steps.get_version.outputs.version }}
token: ${{ secrets.github-token }}
token: ${{ secrets.GITHUB_TOKEN }}

# If the tag already exists, exit with an error
- if: steps.tag_exists.outputs.exists == 'true'
Expand Down Expand Up @@ -83,9 +83,9 @@ jobs:
# Create a release for the tag
- uses: ./.github/actions/release-create
with:
token: ${{ secrets.github-token }}
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.get_version.outputs.version }}
body: ${{ steps.get_release_notes.outputs.release-notes }}
tag: ${{ steps.get_version.outputs.version }}
commit: ${{ github.sha }}
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}

0 comments on commit cbe83f7

Please sign in to comment.