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
19 changes: 13 additions & 6 deletions .github/workflows/package-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ on:
- main
jobs:
release:
# rainix-autopublish's job requests contents: write (to push the version-
# bump commit + tag) and id-token: write. This repo's default workflow-token
# permission is read-only, so without granting these here the reusable's
# request exceeds the caller and the run fails at startup. Grant exactly the
# scopes the reusable needs, per workflow, rather than flipping the whole
# repo default to write.
permissions:
contents: write
id-token: write
uses: rainlanguage/rainix/.github/workflows/rainix-autopublish.yaml@main
with:
soldeer-package: st0x-deploy
# Pass secrets EXPLICITLY, not `inherit`: GitHub disallows `secrets: inherit`
# when the reusable is owned by a different org (rainlanguage vs S01-Issuer),
# which fails the run at startup. Mirror this repo's other cross-org rainix
# callers (e.g. rainix-sol.yaml). Only SOLDEER_API_TOKEN is required for the
# publish; the rest are optional (empty -> the reusable's fallbacks: bot git
# identity, GITHUB_TOKEN push since main is unprotected).
# Secrets are passed explicitly (not `inherit`), mirroring this repo's other
# cross-org rainix callers (e.g. rainix-sol.yaml). Only SOLDEER_API_TOKEN is
# required for the publish; the rest are optional and fall back cleanly when
# empty (bot git identity; GITHUB_TOKEN push, since main is unprotected).
secrets:
SOLDEER_API_TOKEN: ${{ secrets.SOLDEER_API_TOKEN }}
PUBLISH_PRIVATE_KEY: ${{ secrets.PUBLISH_PRIVATE_KEY }}
Expand Down
Loading