Skip to content

Commit 051f4e2

Browse files
committed
Fix release-checks to not use reserved name GITHUB_TOKEN
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 8863e42 commit 051f4e2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/release-checks.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Release Sanity checks
22
on:
33
workflow_call:
44
secrets:
5-
GITHUB_TOKEN:
6-
required: true
5+
ELEMENT_BOT_TOKEN:
6+
required: false
77
inputs:
88
repository:
99
type: string
10-
required: true
10+
required: false
11+
default: ${{ github.repository }}
1112
description: "The repository (in form owner/repo) to check for release blockers"
1213

1314
permissions: {}
@@ -21,7 +22,7 @@ jobs:
2122
env:
2223
REPO: ${{ inputs.repository }}
2324
with:
24-
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
github-token: ${{ secrets.ELEMENT_BOT_TOKEN || secrets.GITHUB_TOKEN }}
2526
script: |
2627
const { REPO } = process.env;
2728
const { data } = await github.rest.search.issuesAndPullRequests({

.github/workflows/release-make.yml

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ jobs:
4646
issues: read
4747
pull-requests: read
4848
uses: matrix-org/matrix-js-sdk/.github/workflows/release-checks.yml@develop
49-
secrets:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
with:
52-
repository: ${{ github.repository }}
5349

5450
release:
5551
name: Release

0 commit comments

Comments
 (0)