Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
jobs:
create-release:
runs-on: ubuntu-latest

# Pushes the version commit to main and creates the release branch. Needed
# for the `|| github.token` fallback when ACTIONS_TOKEN is unset.
permissions:
contents: write

outputs:
new_version: ${{ steps.new-version.outputs.new_version }}
branch_name: ${{ steps.new-version.outputs.branch_name }}
Expand Down Expand Up @@ -130,6 +136,9 @@ jobs:
needs: [create-release, create-tag]
if: always()
runs-on: ubuntu-latest

# Only writes to $GITHUB_STEP_SUMMARY; needs no token scopes at all.
permissions: {}
steps:
- name: Create summary
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5

# Only reads the repo; npm install runs arbitrary postinstall scripts, so
# keep the token scoped down regardless of the org-wide default.
permissions:
contents: read

# 22 is the oldest Node still in support; 24 is the LTS the consuming
# apps now run on. Testing only the newest would leave consumers on 22
# unverified. Node 18 is omitted despite engines.node — it went EOL in
Expand Down