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
10 changes: 8 additions & 2 deletions .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
runs-on: ubuntu-latest
outputs:
bump: ${{ steps.bump.outputs.bump }}
environment:
name: release
deployment: false
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -74,7 +77,7 @@ jobs:
- name: Determine bump type from PR labels
id: bump
env:
GH_TOKEN: ${{ secrets.PRO_ACCESS_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN_RELEASE }}
run: |
set -euo pipefail

Expand Down Expand Up @@ -127,13 +130,16 @@ jobs:
needs: [check-changes, determine-bump, ci]
if: needs.check-changes.outputs.has_changes == 'true'
runs-on: ubuntu-latest
environment:
name: release
deployment: false
steps:
- name: Checkout code # zizmor: ignore[artipacked] the tag push needs it; this job uploads no artifacts
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
fetch-depth: 0
token: ${{ secrets.PRO_ACCESS_TOKEN }}
token: ${{ secrets.GH_TOKEN_RELEASE }}

- name: Fetch tags
run: git fetch --tags --force
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ jobs:
timeout-minutes: 30
permissions:
contents: write
environment:
name: release
deployment: false
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -457,7 +460,7 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.PRO_ACCESS_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.GH_TOKEN_RELEASE }}

- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/create-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- patch
- minor

# The tag push authenticates with PRO_ACCESS_TOKEN, not GITHUB_TOKEN.
# The tag push authenticates with GH_TOKEN_RELEASE, not GITHUB_TOKEN.
permissions:
contents: read

Expand All @@ -29,13 +29,16 @@ jobs:
# Pushes a tag, which triggers the publishing workflows.
if: github.repository == 'localstack/lstk'
runs-on: ubuntu-latest
environment:
name: release
deployment: false
steps:
- name: Checkout code # zizmor: ignore[artipacked] the tag push needs it; this job uploads no artifacts
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.release_ref }}
fetch-depth: 0
token: ${{ secrets.PRO_ACCESS_TOKEN }}
token: ${{ secrets.GH_TOKEN_RELEASE }}

- name: Fetch tags
run: git fetch --tags --force
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly-go-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: "0 8 * * 1"
workflow_dispatch:

# create-pull-request pushes and opens the PR with PRO_ACCESS_TOKEN.
# create-pull-request pushes and opens the PR with GH_TOKEN_OPEN_NEW_PR.
permissions: {}

jobs:
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
dependencies
semver: patch
docs: skip
token: ${{ secrets.PRO_ACCESS_TOKEN }}
token: ${{ secrets.GH_TOKEN_OPEN_NEW_PR }}
Loading