Skip to content

Commit f9d157a

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

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ jobs:
2626
tag_name: ${{ steps.init.outputs.tag_name }}
2727
hubris_app_dirs: ${{ steps.init.outputs.hubris_app_dirs }}
2828
steps:
29+
- &brussels-token
30+
name: Get a token to fetch Brussels
31+
id: brussels-token
32+
uses: oxidecomputer/oidcx-action@main
33+
with:
34+
service: github
35+
repositories: oxidecomputer/brussels
36+
permissions: contents:read,actions:read
37+
2938
- &download-brussels
3039
name: Download Brussels
3140
run: |
@@ -37,7 +46,7 @@ jobs:
3746
sudo mv brussels /usr/local/bin
3847
sudo chmod +x /usr/local/bin/brussels
3948
env:
40-
GH_TOKEN: ${{ secrets.BRUSSELS_TEMPORARY_TOKEN }}
49+
GITHUB_TOKEN: ${{ steps.brussels-token.outputs.access_token }}
4150
BRUSSELS_RUN_ID: ${{ github.event.inputs.brussels-run-id }}
4251

4352
- id: init

0 commit comments

Comments
 (0)