Skip to content

Commit

Permalink
Elevate permissions in publish workflow (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Aug 28, 2024
1 parent 972c5dd commit 9672c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
publish-docker:
runs-on: ubuntu-latest
name: Docker Image
environment: publish

steps:
- name: Checkout source
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
publish-pypi:
name: Python Distribution
runs-on: ubuntu-latest
environment: pypi
environment: publish

steps:
- name: Set up Python
Expand All @@ -88,6 +89,8 @@ jobs:
trigger-docs:
name: Trigger Docs
runs-on: ubuntu-latest
environment: publish

steps:
- name: Update docs
uses: pitt-crc/keystone-docs/.github/actions/update-action/@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
needs: [ version, test ]
uses: ./.github/workflows/Publish.yml
secrets: inherit
permissions:
id-token: write
with:
version: ${{needs.version.outputs.version}}

0 comments on commit 9672c42

Please sign in to comment.