diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml index 1f20acea22c..b83b4dd1ce8 100644 --- a/.github/workflows/release-checks.yml +++ b/.github/workflows/release-checks.yml @@ -2,12 +2,13 @@ name: Release Sanity checks on: workflow_call: secrets: - GITHUB_TOKEN: - required: true + ELEMENT_BOT_TOKEN: + required: false inputs: repository: type: string - required: true + required: false + default: ${{ github.repository }} description: "The repository (in form owner/repo) to check for release blockers" permissions: {} @@ -21,7 +22,7 @@ jobs: env: REPO: ${{ inputs.repository }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.ELEMENT_BOT_TOKEN || secrets.GITHUB_TOKEN }} script: | const { REPO } = process.env; const { data } = await github.rest.search.issuesAndPullRequests({ diff --git a/.github/workflows/release-make.yml b/.github/workflows/release-make.yml index a72aacac923..421115e68f1 100644 --- a/.github/workflows/release-make.yml +++ b/.github/workflows/release-make.yml @@ -46,10 +46,6 @@ jobs: issues: read pull-requests: read uses: matrix-org/matrix-js-sdk/.github/workflows/release-checks.yml@develop - secrets: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - repository: ${{ github.repository }} release: name: Release