Skip to content

Commit a7c1cb1

Browse files
committed
use otelbot short time token for pushing nightly tags
1 parent 87bab64 commit a7c1cb1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/nightly-release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
name: Nightly Release
1818
runs-on: ubuntu-latest
1919

20-
permissions:
21-
contents: write
22-
2320
steps:
21+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
22+
id: otelbot-token
23+
with:
24+
app-id: ${{ vars.OTELBOT_COLLECTOR_RELEASES_APP_ID }}
25+
private-key: ${{ secrets.OTELBOT_COLLECTOR_RELEASES_PRIVATE_KEY }}
26+
2427
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2528
with:
2629
fetch-depth: 0
27-
token: ${{ secrets.GH_PAT }}
30+
token: ${{ steps.otelbot-token.outputs.token }}
2831

2932
- name: 'Push new tag'
3033
run: |

0 commit comments

Comments
 (0)