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
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ on:

name: Create Release

# Least-privilege default for the whole workflow — jobs that need more
# override at the job level. Matches the convention used by
# cleanup-jp.yml / nonregression-jp.yml.
permissions:
contents: read

jobs:
build:
name: Create Release
runs-on: ubuntu-22.04
# actions/create-release@v1 needs contents: write to publish a Release.
permissions:
contents: write
outputs:
release_url: ${{ steps.create_release.outputs.html_url }}
steps:
Expand All @@ -35,6 +44,9 @@ jobs:
zip-recipes:
runs-on: ubuntu-22.04
needs: build
# actions/upload-release-asset needs contents: write to attach recipes.zip.
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -113,8 +125,9 @@ jobs:
name: Record release on main
runs-on: ubuntu-22.04
needs: build
permissions:
contents: write
# No override needed — the push uses secrets.RELEASE_TOKEN (a PAT), not
# the default GITHUB_TOKEN, so this job only needs the workflow-level
# `contents: read` (for actions/checkout).
steps:
- name: Checkout main
uses: actions/checkout@v4
Expand Down
Loading