Skip to content

SK-2986 fix v3 release: pass PAT_ACTIONS into reusable workflow - #375

Merged
Devesh-Skyflow merged 1 commit into
v3-release/26.7.29from
devesh/sk-2986-fix-reusable-pat-secret
Jul 29, 2026
Merged

SK-2986 fix v3 release: pass PAT_ACTIONS into reusable workflow#375
Devesh-Skyflow merged 1 commit into
v3-release/26.7.29from
devesh/sk-2986-fix-reusable-pat-secret

Conversation

@Devesh-Skyflow

Copy link
Copy Markdown
Collaborator

Problem

The build-and-deploy-v3 / publish job fails at the very first step (actions/checkout@v2) with:

Error: Input required and not supplied: token

The checkout step supplies token: ${{ secrets.PAT_ACTIONS }} (added in #372 / SK-2986 so the persisted admin PAT can push the automated version bump past branch protection). But that step lives inside the reusable workflow shared-build-and-deploy.yml (workflow_call). Reusable workflows do not inherit the caller's secrets — a secret is only visible if it is declared in workflow_call.secrets and passed by the caller. PAT_ACTIONS was neither declared nor passed, so it resolved to empty and checkout hard-failed.

Fix

Matches the repo's existing secret-passing pattern:

  • shared-build-and-deploy.yml: declare a pat-actions workflow_call secret; checkout now uses token: ${{ secrets.pat-actions }}.
  • Pass pat-actions: ${{ secrets.PAT_ACTIONS }} from all three callers: internal-release.yml, release.yml, beta-release.yml.

All four workflow files validated as YAML.

Note (out of scope)

shared-build-and-deploy.yml also references ${{ secrets.TEST_CREDENTIALS_FILE_STRING }} directly (create-json step) without declaring/passing it, so credentials.json is built empty. The job currently dies at checkout before reaching it. Left for a separate change.

🤖 Generated with Claude Code

The checkout step in shared-build-and-deploy.yml uses
`token: ${{ secrets.PAT_ACTIONS }}`, but that step runs inside a reusable
(workflow_call) workflow. Reusable workflows do not inherit the caller's
secrets, and PAT_ACTIONS was neither declared as a workflow_call secret nor
passed by any caller — so it resolved to empty and actions/checkout failed
with "Input required and not supplied: token".

Declare a `pat-actions` workflow_call secret and pass it explicitly from all
three callers (internal-release, release, beta-release), matching the existing
secret-passing pattern.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Devesh-Skyflow
Devesh-Skyflow merged commit 7bf3f56 into v3-release/26.7.29 Jul 29, 2026
2 checks passed
Devesh-Skyflow added a commit that referenced this pull request Jul 29, 2026
…loop fix [skip ci]

Squashes the release-only history on top of v3 (ceae600) into one commit:
- SK-3023 configurable connect/read/write timeouts for v3 (#374)
- SK-2986 pass PAT_ACTIONS into reusable workflow via workflow_call secret (#375)
- SK-3023 fix internal-release infinite loop via [skip ci] on the bump commit (#377)
- the automated dev version bumps (folded in)

Version: 3.0.0-beta.12-dev.6d1831b. Tree is unchanged from f2eb507.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Devesh-Skyflow added a commit that referenced this pull request Jul 29, 2026
* SK-3023 v3-release/26.7.29: configurable timeouts + internal-release loop fix [skip ci]

Squashes the release-only history on top of v3 (ceae600) into one commit:
- SK-3023 configurable connect/read/write timeouts for v3 (#374)
- SK-2986 pass PAT_ACTIONS into reusable workflow via workflow_call secret (#375)
- SK-3023 fix internal-release infinite loop via [skip ci] on the bump commit (#377)
- the automated dev version bumps (folded in)

Version: 3.0.0-beta.12-dev.6d1831b. Tree is unchanged from f2eb507.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* SK-3023 guard internal-release against the automated bump commit (v3 release)

Replaces the skip-ci approach with a scoped job guard so the PAT-authored
version bump cannot re-trigger the release, without globally skipping CI
(so PR checks run again).

- internal-release.yml: skip the job when the head commit is an automated bump
- shared-build-and-deploy.yml: drop the skip-ci suffix from the bump commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* [AUTOMATED] Private Release 3.0.0-beta.12-dev-cad9a33

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Devesh-Skyflow <Devesh-Skyflow@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant