Skip to content

Commit c281ed2

Browse files
committed
ci: Fix release workflow
Fetch whole repo Authenticate with app token to allow changes
1 parent 5e05c0a commit c281ed2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release_workspace.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ on:
2525
concurrency:
2626
group: ${{ github.workflow }}-${{ inputs.workspace }}
2727

28-
permissions:
29-
contents: write
30-
actions: write
31-
3228
jobs:
3329
changesets-pr:
3430
name: Update Version Packages PR for ${{ inputs.workspace }}
@@ -47,9 +43,18 @@ jobs:
4743
with:
4844
egress-policy: audit
4945

46+
- uses: actions/create-github-app-token@v2
47+
id: app-token
48+
with:
49+
app-id: ${{ secrets.BACKSTAGE_BOT_APPLICATION_ID }}
50+
private-key: ${{ secrets.BACKSTAGE_BOT_PRIVATE_KEY }}
51+
5052
- name: Checkout
5153
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
52-
54+
with:
55+
fetch-depth: 0
56+
token: ${{ steps.app-token.outputs.token }}
57+
5358
- name: Set up Node
5459
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v4
5560
with:

0 commit comments

Comments
 (0)