Skip to content
Draft
Show file tree
Hide file tree
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
21 changes: 19 additions & 2 deletions .github/workflows/changelog-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ on:
description: 'Commit message for version bump'
type: string
default: 'chore(release): bump version and update changelog [skip ci]'
app_id:
description: 'GitHub App ID for generating a token to bypass branch protections (optional)'
required: false
type: string
default: ''
secrets:
app_private_key:
description: 'GitHub App private key (required if app_id is set)'
required: false
outputs:
has_changes:
description: 'Whether there were changes to release'
Expand All @@ -48,11 +57,19 @@ jobs:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Generate GitHub App token
id: app-token
if: ${{ inputs.app_id != '' }}
uses: actions/create-github-app-token@v3
with:
app-id: ${{ inputs.app_id }}
private-key: ${{ secrets.app_private_key }}

- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}

- name: Configure Git
run: |
Expand Down Expand Up @@ -396,7 +413,7 @@ jobs:
- name: Create GitHub Release
if: steps.changelog.outputs.has_changes == 'true' && inputs.create-github-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
run: |
while IFS= read -r tag; do
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ on:
required: false
type: boolean
default: true
app_id:
description: 'GitHub App ID for generating a token to bypass branch protections (optional)'
required: false
type: string
default: ''
secrets:
app_private_key:
description: 'GitHub App private key (required if app_id is set)'
required: false

permissions:
contents: write
Expand All @@ -28,6 +37,14 @@ jobs:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Generate GitHub App token
id: app-token
if: ${{ inputs.app_id != '' }}
uses: actions/create-github-app-token@v3
with:
app-id: ${{ inputs.app_id }}
private-key: ${{ secrets.app_private_key }}

- name: Checkout repository
uses: actions/checkout@v6

Expand All @@ -36,6 +53,7 @@ jobs:
uses: googleapis/release-please-action@v5
with:
release-type: ${{ inputs.release-type }}
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}

update-readme-versions:
name: Update README Versions
Expand All @@ -45,11 +63,19 @@ jobs:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Generate GitHub App token
id: app-token
if: ${{ inputs.app_id != '' }}
uses: actions/create-github-app-token@v3
with:
app-id: ${{ inputs.app_id }}
private-key: ${{ secrets.app_private_key }}

- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}

- name: Update all README versions
run: |
Expand Down
91 changes: 0 additions & 91 deletions docs/superpowers/specs/2026-05-20-trivy-tofu-scan-design.md

This file was deleted.