Skip to content

ci: rename PS_GALLERY_KEY secret reference to PSGALLERY_API_KEY#25

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#25
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.
  • The env var name fed into build.ps1 (PSGALLERY_API_KEY) is unchanged.
  • No actual secret value is required on the template repo (it doesn't publish itself).
  • Future modules created from this template will pick up the new name automatically.

Test plan

  • CI passes: PSScriptAnalyzer Lint, Unit Tests (ubuntu/windows/macOS-latest)

Verified 2026-05-10: PR head edcb79b check-runs all green — PSScriptAnalyzer Lint, Unit Tests (ubuntu-latest), Unit Tests (windows-latest), Unit Tests (macOS-latest) all success.

  • Workflow YAML still parses (no syntax errors)

Verified 2026-05-10: PublishModuleToPowerShellGallery.yaml on main parses cleanly via yaml.safe_load; secret reference is now PSGALLERY_API_KEY (2 occurrences) with zero PS_GALLERY_KEY references remaining.

🤖 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 so future
modules created from this template don't inherit the older PS_GALLERY_KEY
name. Template doesn't publish, so no actual secret needs to exist.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 10, 2026 03:06
@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 32 minutes and 1 second 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: 33f63a41-3e90-49d0-870c-0bd873e4b4d9

📥 Commits

Reviewing files that changed from the base of the PR and between f0bdb02 and edcb79b.

📒 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.

@tablackburn tablackburn enabled auto-merge (squash) May 10, 2026 03:06
@tablackburn tablackburn merged commit 0125a71 into main May 10, 2026
13 checks passed
@tablackburn tablackburn deleted the ci/secret-name-rename branch May 10, 2026 03:06
Copy link
Copy Markdown

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

Updates the PowerShell Gallery publishing workflow in this template to use the renamed GitHub Actions secret PSGALLERY_API_KEY (instead of PS_GALLERY_KEY) while keeping the environment variable passed to build.ps1 unchanged.

Changes:

  • Switch PublishModuleToPowerShellGallery.yaml to read the API key from secrets.PSGALLERY_API_KEY.

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

shell: pwsh
env:
PSGALLERY_API_KEY: ${{ secrets.PS_GALLERY_KEY }}
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
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