Skip to content

Commit

Permalink
Restrict the release workflow to the @sphinx-doc organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 18, 2024
1 parent 4552a5f commit 829ec71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: PyPI Release
environment: release
if: github.repository_owner == 'sphinx-doc'
permissions:
id-token: write # for PyPI trusted publishing
steps:
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
runs-on: ubuntu-latest
name: GitHub release
environment: release
if: github.repository_owner == 'sphinx-doc'
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
steps:
Expand Down

0 comments on commit 829ec71

Please sign in to comment.