Skip to content

fix(ci): persist-credentials: false on release, agent-restricted, strands-command#2

Merged
jpr5 merged 1 commit into
mainfrom
fix/persist-credentials-remaining
May 15, 2026
Merged

fix(ci): persist-credentials: false on release, agent-restricted, strands-command#2
jpr5 merged 1 commit into
mainfrom
fix/persist-credentials-remaining

Conversation

@jpr5
Copy link
Copy Markdown

@jpr5 jpr5 commented May 15, 2026

Summary

  • release.yml: persist-credentials: false on prepare-release + publish-npm jobs, insteadOf before push
  • agent-restricted.yml: persist-credentials: false (strands-action manages own credentials via pat_token)
  • strands-command.yml: persist-credentials: false (same pattern)

…ands-command

Defense-in-depth: stop persisting the GITHUB_TOKEN in the git
credential store on three workflows that previously left it
populated after checkout.

- release.yml (prepare-release + publish-npm): add
  persist-credentials: false and explicit insteadOf step before
  every git push so push still works without the persisted token.
- agent-restricted.yml: add persist-credentials: false; the
  strands-action already configures its own git credentials via
  pat_token input.
- strands-command.yml: same pattern as agent-restricted.
- test-and-build job already had persist-credentials: false and
  is left unchanged.
@github-actions github-actions Bot added the size/xs PR size: XS label May 15, 2026
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 42.44% 7169 / 16891
🔵 Statements 41.84% 7602 / 18165
🔵 Functions 40.14% 1273 / 3171
🔵 Branches 41.03% 4803 / 11706
Generated in workflow #11 for commit 1503c06 by the Vitest Coverage Report Action

@jpr5 jpr5 merged commit 5453800 into main May 15, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant