Skip to content

Bump PSModule/GitHub-Script from 1.7.10 to 1.8.0#25

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/PSModule/GitHub-Script-1.8.0
Closed

Bump PSModule/GitHub-Script from 1.7.10 to 1.8.0#25
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/PSModule/GitHub-Script-1.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Bumps PSModule/GitHub-Script from 1.7.10 to 1.8.0.

Release notes

Sourced from PSModule/GitHub-Script's releases.

v1.8.0

🚀 [Minor]: GitHub API rate limit details now available in action logs (#89)

GitHub API rate limit consumption is now visible directly in the action logs. When enabled, rate limit details - including remaining quota, limit, used count, and reset time for all resource categories - are displayed before and after the user script runs, making it easy to see exactly how many API calls a workflow step consumed.

New: Rate limit visibility in action logs

A new ShowRateLimit input (default: 'false') controls whether rate limit information appears in the logs. When set to 'true', a Rate Limits LogGroup appears inside the Info fence before the user script, and another Rate Limits LogGroup appears inside the Outputs fence after it.

- uses: PSModule/GitHub-Script@v1
  with:
    ShowRateLimit: 'true'
    Script: |
      Get-GitHubRepository -Owner PSModule -Name GitHub-Script

The output includes a formatted table of all resource categories returned by Get-GitHubRateLimit (core, search, graphql, etc.), each showing Limit, Used, Remaining, ResetsAt, and ResetsIn.

When the input is omitted or set to 'false' (the default), no rate limit output appears.

If ShowRateLimit is enabled but ShowInfo or ShowOutput is off, the corresponding fence still renders with just the rate limit content inside. For auth types that do not support Get-GitHubRateLimit (for example GitHub App contexts), a warning is shown instead of failing.

Technical Details

  • Added ShowRateLimit input to action.yml with required: false and default: 'false'.
  • Added PSMODULE_GITHUB_SCRIPT_INPUT_ShowRateLimit environment variable to the composite step.
  • Created src/ratelimit.ps1 as a helper script (no fence borders) that checks the guard and renders a single Rate Limits LogGroup.
  • src/ratelimit.ps1 now calls Get-GitHubRateLimit -ErrorAction Stop so non-terminating errors are caught reliably in unsupported auth contexts.
  • src/ratelimit.ps1 explicitly selects Name, Limit, Used, Remaining, ResetsAt, and ResetsIn before formatting to keep columns deterministic.
  • Modified src/info.ps1: adjusted the early-return guard to also consider ShowRateLimit, wrapped existing LogGroups in if ($showInfo), and calls ratelimit.ps1 before the fence close.
  • Modified src/outputs.ps1: adjusted the early-return guard to also consider ShowRateLimit, wrapped existing output LogGroups in if ($result), and calls ratelimit.ps1 before the fence close.
  • The action.yml run block remains in the same flow, while info.ps1 and outputs.ps1 invoke the helper internally.
  • Enabled ShowRateLimit: true across all Action-Test scenarios in .github/workflows/TestWorkflow.yml, including Basic, WithScript path variants, Commands + Outputs, Matrix Creator, WithoutToken, WithPAT, WithUserFGPAT, WithOrgFGPAT, GitHubAppEnt, GitHubAppOrg + quoted inputs, WithKeyVaultKeyReference, WithKeyVaultKeyReferenceLatest, and PreserveCredentials False.
Commits
  • 1ee97bb 🚀 [Minor]: GitHub API rate limit details now available in action logs (#89)
  • 8649c46 Bump azure/login from 2.3.0 to 3.0.0 (#86)
  • e3b0111 ⚙️ [Maintenance]: Add afterall to codespell ignore words list (#85)
  • 2d8efc6 Bump super-linter/super-linter from 8.4.0 to 8.5.0 (#84)
  • 611c5dc ⚙️ [Maintenance]: Update super-linter to v8.4.0 (#83)
  • 99556fc ⚙️ [Maintenance]: Align workflows across action repositories (#82)
  • See full diff in compare view

@dependabot @github

dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, github-actions. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@MariusStorhaug

Copy link
Copy Markdown
Member

Dependabot (@dependabot) recreate

Bumps [PSModule/GitHub-Script](https://github.com/psmodule/github-script) from 1.7.10 to 1.8.0.
- [Release notes](https://github.com/psmodule/github-script/releases)
- [Commits](PSModule/GitHub-Script@0097f3b...1ee97bb)

---
updated-dependencies:
- dependency-name: PSModule/GitHub-Script
  dependency-version: 1.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/github_actions/PSModule/GitHub-Script-1.8.0 branch from ad63d61 to 99a79f6 Compare July 9, 2026 00:38
@MariusStorhaug

Copy link
Copy Markdown
Member

Superseded by #30, which bumps PSModule/GitHub-Script straight to v1.9.0.

@dependabot @github

dependabot Bot commented on behalf of github Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/github_actions/PSModule/GitHub-Script-1.8.0 branch July 9, 2026 00:45
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