Skip to content

Commit 03d3f42

Browse files
ci: add permissions to publish caller job and upgrade release-please-action to v5 (#49)
## Summary Fixes Release Please `startup_failure` by adding explicit `permissions` to the `call-workflow-publish` caller job. Also migrates from archived `google-github-actions/release-please-action` to `googleapis/release-please-action` v5. ## Review & Testing Checklist for Human - [ ] Verify the release-please workflow runs without startup_failure on next push to main - [ ] Confirm the migration from google-github-actions to googleapis doesn't change behavior ### Notes Same fix pattern as dotnet-core PR #241. The `google-github-actions/release-please-action` repo is archived; `googleapis/release-please-action` is the active successor. Link to Devin session: https://app.devin.ai/sessions/54e32482848742c19ebf9c374efdc833 Requested by: @kinyoklion <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk CI-only change; it updates the Release Please GitHub Action and adds explicit job permissions for the reusable publish workflow, which could affect release automation if misconfigured. > > **Overview** > Updates the Release Please workflow to use the maintained `googleapis/release-please-action` at v5. > > Adds explicit `id-token` and `contents` permissions to the `call-workflow-publish` reusable-workflow caller job to avoid permission-related startup failures when publishing after a release is created. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 22887ce. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 965f456 commit 03d3f42

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/release-please.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ jobs:
1818
releases_created: ${{ steps.release.outputs.releases_created }}
1919

2020
steps:
21-
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.4.0
21+
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
2222
id: release
2323
with:
2424
token: ${{ secrets.GITHUB_TOKEN }}
2525
target-branch: ${{ github.ref_name }}
2626

2727
call-workflow-publish:
2828
needs: release-please
29+
permissions:
30+
id-token: write
31+
contents: write
2932
uses: ./.github/workflows/publish.yml
3033
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
3134
with:

0 commit comments

Comments
 (0)