Skip to content

Commit

Permalink
chore: Update release workflow to include id-token permission for tru…
Browse files Browse the repository at this point in the history
…sted publishing
  • Loading branch information
mikita-sakalouski committed May 29, 2024
1 parent 0af200f commit 54034df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: release

permissions:
id-token: write

on:
push:
tags:
Expand Down Expand Up @@ -74,6 +71,11 @@ jobs:
needs: python-artifacts
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- name: Download Python artifacts
Expand Down

0 comments on commit 54034df

Please sign in to comment.