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
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release
permissions: {}

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -21,10 +22,6 @@ jobs:
with:
client-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Comment on lines 22 to 24
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep GitHub App token scoped to required permissions

By removing the permission-contents and permission-pull-requests inputs from this actions/create-github-app-token step, the minted installation token now defaults to all permissions granted to the app installation, not just the two needed by release-plz. That expands the blast radius for every release run if a downstream action or script is compromised, and it is a security regression relative to the previous least-privilege configuration.

Useful? React with 👍 / 👎.

owner: ${{ github.repository_owner }}
repositories: ${{ github.event.repository.name }}
permission-contents: write
permission-pull-requests: write

- uses: oxc-project/release-plz@e2b12f55ad64a22af8e93634b94439c42913afca # v1.0.6
with:
Expand Down
Loading