Skip to content

Commit cfe37c7

Browse files
committed
sec(sts): retire RELEASE_BOT_TOKEN
Use STS instead
1 parent 0cc83f8 commit cfe37c7

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
issuer: https://token.actions.githubusercontent.com
2+
subject_pattern: "^repo:odigos-io/simple-trace-db:ref:refs/heads/main$"
3+
4+
permissions:
5+
contents: write
6+
pull_requests: write

.github/workflows/release-please.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: write
10+
contents: read
1111
pull-requests: write
1212

1313
jobs:
@@ -20,8 +20,15 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
- name: Get release token
24+
uses: odigos-io/ci-core/sts@main
25+
id: release-token
26+
with:
27+
pairs: |
28+
odigos-io/simple-trace-db:releaser
29+
2330
- name: Create or Update Release PR
2431
uses: googleapis/release-please-action@v4
2532
id: release
2633
with:
27-
token: ${{ secrets.RELEASE_BOT_TOKEN }}
34+
token: ${{ steps.release-token.outputs.GH_TOKEN }}

0 commit comments

Comments
 (0)