Skip to content

ci: rename PS_GALLERY_KEY secret reference to PSGALLERY_API_KEY#51

Merged
tablackburn merged 1 commit into
mainfrom
ci/secret-name-rename
May 10, 2026
Merged

ci: rename PS_GALLERY_KEY secret reference to PSGALLERY_API_KEY#51
tablackburn merged 1 commit into
mainfrom
ci/secret-name-rename

Conversation

@tablackburn
Copy link
Copy Markdown
Owner

@tablackburn tablackburn commented May 10, 2026

Summary

  • Updates PublishModuleToPowerShellGallery.yaml to read from secrets.PSGALLERY_API_KEY instead of secrets.PS_GALLERY_KEY, matching the convention established in PowerShellModuleTemplate (PR upstream-template#25).
  • The env var name fed into build.ps1 (PSGALLERY_API_KEY) is unchanged.
  • A new PSGALLERY_API_KEY secret has been added with the same value as the existing PS_GALLERY_KEY secret, so the next publish workflow run will succeed.
  • The old PS_GALLERY_KEY secret will be deleted after this PR merges.

Test plan

  • CI passes on the standard required checks

Verified 2026-05-10: PR head 2d40fd7 check-runs all green — PSScriptAnalyzer Lint, Unit Tests (ubuntu/macOS/windows-latest + Windows PowerShell 5.1), Integration Tests (ubuntu/windows-latest), codecov/patch, GitGuardian all success.

  • After merge: PS_GALLERY_KEY repo secret deleted

Verified 2026-05-10: gh secret list -R tablackburn/PlexAutomationToolkit returns CODECOV_TOKEN, GITGUARDIAN_API_KEY, PLEX_* (5 entries), PSGALLERY_API_KEY — no PS_GALLERY_KEY.

🤖 Generated with Claude Code

The env var fed to build.ps1 is already named PSGALLERY_API_KEY; this
brings the GitHub Actions secret name into the same convention. The new
PSGALLERY_API_KEY secret has been pre-populated with the same value as
PS_GALLERY_KEY so the next publish will succeed without intervention.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 10, 2026 04:24
@tablackburn tablackburn enabled auto-merge (squash) May 10, 2026 04:25
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 10, 2026

Warning

Rate limit exceeded

@tablackburn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 60 minutes before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fe82d533-532c-4b79-a7d7-36c7197eb596

📥 Commits

Reviewing files that changed from the base of the PR and between f90e86f and 2d40fd7.

📒 Files selected for processing (1)
  • .github/workflows/PublishModuleToPowerShellGallery.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/secret-name-rename

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PowerShell Gallery publish workflow to reference the renamed GitHub Actions secret (PSGALLERY_API_KEY) instead of the legacy (PS_GALLERY_KEY), aligning this repo with the upstream template convention while keeping the environment variable passed to build.ps1 unchanged.

Changes:

  • Updated .github/workflows/PublishModuleToPowerShellGallery.yaml to read the API key from secrets.PSGALLERY_API_KEY.
  • Kept the exported environment variable name (PSGALLERY_API_KEY) the same for compatibility with the existing publish script invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tablackburn tablackburn merged commit 1489525 into main May 10, 2026
17 checks passed
@tablackburn tablackburn deleted the ci/secret-name-rename branch May 10, 2026 04:29
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.

2 participants