Skip to content

Commit 11c11ff

Browse files
committed
fetch the token to download Brussels with oidcx-action
1 parent c75dfa8 commit 11c11ff

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,23 @@ jobs:
2121
init:
2222
name: Initialize the release
2323
runs-on: ubuntu-24.04
24+
permissions:
25+
contents: read
26+
id-token: write
2427
outputs:
2528
version: ${{ steps.init.outputs.version }}
2629
tag_name: ${{ steps.init.outputs.tag_name }}
2730
hubris_app_dirs: ${{ steps.init.outputs.hubris_app_dirs }}
2831
steps:
32+
- &brussels-token
33+
name: Get a token to fetch Brussels
34+
id: brussels-token
35+
uses: oxidecomputer/oidcx-action@main
36+
with:
37+
service: github
38+
repositories: oxidecomputer/brussels
39+
permissions: contents:read,actions:read
40+
2941
- &download-brussels
3042
name: Download Brussels
3143
run: |
@@ -37,7 +49,7 @@ jobs:
3749
sudo mv brussels /usr/local/bin
3850
sudo chmod +x /usr/local/bin/brussels
3951
env:
40-
GH_TOKEN: ${{ secrets.BRUSSELS_TEMPORARY_TOKEN }}
52+
GITHUB_TOKEN: ${{ steps.brussels-token.outputs.access_token }}
4153
BRUSSELS_RUN_ID: ${{ github.event.inputs.brussels-run-id }}
4254

4355
- id: init

0 commit comments

Comments
 (0)