Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ jobs:
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

# Temporary: release creation fails with "Resource not accessible by
# integration". An empty POST is always rejected, so it creates nothing:
# 403 means the token lacks a permission (named in
# x-accepted-github-permissions), 422 means the token can write.
- name: Probe release-create permission
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
gh api -i -X POST "repos/${{ github.repository }}/releases" --input /dev/null 2>&1 \
| grep -iE '^HTTP/|^x-accepted-github-permissions|^x-oauth-scopes|"message"|^gh:' || true
# Listing permissions limits the token to these. workflows is needed
# to tag a release whose commits change .github/workflows/; if the
# app lacks it, token creation fails here with that permission named.
permission-contents: write
permission-issues: write
permission-pull-requests: write
permission-workflows: write

- name: Run Release Please
uses: google-github-actions/release-please-action@v4
Expand Down
Loading