Skip to content

Commit 0a28488

Browse files
committed
chore(ci): add permission to github token to release crates
When using crates.io trusted publishing feature GitHub token `id-token: write` permission to be able to authenticate the workflow on the registry.
1 parent 8083990 commit 0a28488

8 files changed

+22
-1
lines changed

.github/workflows/make_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
# For provenance of npmjs publish
8888
permissions:
8989
contents: read
90-
id-token: write
90+
id-token: write # also needed for OIDC token exchange on crates.io
9191
steps:
9292
- name: Checkout
9393
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_cuda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ jobs:
122122
name: Publish CUDA Release
123123
needs: [setup-instance, package] # for comparing hashes
124124
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
125+
permissions:
126+
# Needed for OIDC token exchange on crates.io
127+
id-token: write
125128
strategy:
126129
fail-fast: false
127130
# explicit include-based build matrix, of known valid options

.github/workflows/make_release_hpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
name: Publish tfhe-hpu-backend Release
6767
runs-on: ubuntu-latest
6868
needs: [verify_tag, package] # for comparing hashes
69+
permissions:
70+
# Needed for OIDC token exchange on crates.io
71+
id-token: write
6972
steps:
7073
- name: Checkout
7174
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_tfhe_csprng.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
name: Publish tfhe-csprng Release
6868
needs: [verify_tag, package]
6969
runs-on: ubuntu-latest
70+
permissions:
71+
# Needed for OIDC token exchange on crates.io
72+
id-token: write
7073
steps:
7174
- name: Checkout
7275
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_tfhe_fft.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
name: Publish tfhe-fft Release
6868
runs-on: ubuntu-latest
6969
needs: [verify_tag, package] # for comparing hashes
70+
permissions:
71+
# Needed for OIDC token exchange on crates.io
72+
id-token: write
7073
steps:
7174
- name: Checkout
7275
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_tfhe_ntt.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
name: Publish tfhe-ntt Release
6868
runs-on: ubuntu-latest
6969
needs: [verify_tag, package] # for comparing hashes
70+
permissions:
71+
# Needed for OIDC token exchange on crates.io
72+
id-token: write
7073
steps:
7174
- name: Checkout
7275
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_tfhe_versionable.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
name: Publish tfhe-versionable-derive Release
6161
needs: [ verify_tag, package-derive ] # for comparing hashes
6262
runs-on: ubuntu-latest
63+
permissions:
64+
# Needed for OIDC token exchange on crates.io
65+
id-token: write
6366
steps:
6467
- name: Checkout
6568
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/make_release_zk_pok.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
name: Publish tfhe-zk-pok Release
6565
needs: [verify_tag, package] # for comparing hashes
6666
runs-on: ubuntu-latest
67+
permissions:
68+
# Needed for OIDC token exchange on crates.io
69+
id-token: write
6770
steps:
6871
- name: Checkout
6972
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)