Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

v5

  • v5
  • ce64918
  • Verified

    This commit was created on GitHub.com and signed with GitHub鈥檚 verified signature.
  • Choose a tag to compare

  • v5
  • ce64918
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub鈥檚 verified signature.
@dependabot dependabot tagged this 27 May 16:56
Bumps
[PSModule/GitHub-Script](https://github.com/psmodule/github-script) from
1.7.10 to 1.8.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/psmodule/github-script/releases">PSModule/GitHub-Script's
releases</a>.</em></p>
<blockquote>
<h2>v1.8.0</h2>
<h1>馃殌 [Minor]: GitHub API rate limit details now available in action
logs (<a
href="https://redirect.github.com/psmodule/github-script/issues/89">#89</a>)</h1>
<p>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.</p>
<ul>
<li>Fixes <a
href="https://redirect.github.com/psmodule/github-script/issues/88">#88</a></li>
</ul>
<h2>New: Rate limit visibility in action logs</h2>
<p>A new <code>ShowRateLimit</code> input (default:
<code>'false'</code>) controls whether rate limit information appears in
the logs. When set to <code>'true'</code>, a <strong>Rate
Limits</strong> LogGroup appears inside the Info fence before the user
script, and another <strong>Rate Limits</strong> LogGroup appears inside
the Outputs fence after it.</p>
<pre lang="yaml"><code>- uses: PSModule/GitHub-Script@v1
  with:
    ShowRateLimit: 'true'
    Script: |
      Get-GitHubRepository -Owner PSModule -Name GitHub-Script
</code></pre>
<p>The output includes a formatted table of all resource categories
returned by <code>Get-GitHubRateLimit</code> (core, search, graphql,
etc.), each showing <code>Limit</code>, <code>Used</code>,
<code>Remaining</code>, <code>ResetsAt</code>, and
<code>ResetsIn</code>.</p>
<p>When the input is omitted or set to <code>'false'</code> (the
default), no rate limit output appears.</p>
<p>If <code>ShowRateLimit</code> is enabled but <code>ShowInfo</code> or
<code>ShowOutput</code> is off, the corresponding fence still renders
with just the rate limit content inside. For auth types that do not
support <code>Get-GitHubRateLimit</code> (for example GitHub App
contexts), a warning is shown instead of failing.</p>
<h2>Technical Details</h2>
<ul>
<li>Added <code>ShowRateLimit</code> input to <code>action.yml</code>
with <code>required: false</code> and <code>default:
'false'</code>.</li>
<li>Added <code>PSMODULE_GITHUB_SCRIPT_INPUT_ShowRateLimit</code>
environment variable to the composite step.</li>
<li>Created <code>src/ratelimit.ps1</code> as a helper script (no fence
borders) that checks the guard and renders a single <code>Rate
Limits</code> LogGroup.</li>
<li><code>src/ratelimit.ps1</code> now calls <code>Get-GitHubRateLimit
-ErrorAction Stop</code> so non-terminating errors are caught reliably
in unsupported auth contexts.</li>
<li><code>src/ratelimit.ps1</code> explicitly selects <code>Name</code>,
<code>Limit</code>, <code>Used</code>, <code>Remaining</code>,
<code>ResetsAt</code>, and <code>ResetsIn</code> before formatting to
keep columns deterministic.</li>
<li>Modified <code>src/info.ps1</code>: adjusted the early-return guard
to also consider <code>ShowRateLimit</code>, wrapped existing LogGroups
in <code>if ($showInfo)</code>, and calls <code>ratelimit.ps1</code>
before the fence close.</li>
<li>Modified <code>src/outputs.ps1</code>: adjusted the early-return
guard to also consider <code>ShowRateLimit</code>, wrapped existing
output LogGroups in <code>if ($result)</code>, and calls
<code>ratelimit.ps1</code> before the fence close.</li>
<li>The <code>action.yml</code> run block remains in the same flow,
while <code>info.ps1</code> and <code>outputs.ps1</code> invoke the
helper internally.</li>
<li>Enabled <code>ShowRateLimit: true</code> across all Action-Test
scenarios in <code>.github/workflows/TestWorkflow.yml</code>, including
Basic, WithScript path variants, Commands + Outputs, Matrix Creator,
WithoutToken, WithPAT, WithUserFGPAT, WithOrgFGPAT, GitHubAppEnt,
GitHubAppOrg + quoted inputs, WithKeyVaultKeyReference,
WithKeyVaultKeyReferenceLatest, and PreserveCredentials False.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a"><code>1ee97bb</code></a>
馃殌 [Minor]: GitHub API rate limit details now available in action logs
(<a
href="https://redirect.github.com/psmodule/github-script/issues/89">#89</a>)</li>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/8649c467ee0b68264cb1278a301db734e7be0b3d"><code>8649c46</code></a>
Bump azure/login from 2.3.0 to 3.0.0 (<a
href="https://redirect.github.com/psmodule/github-script/issues/86">#86</a>)</li>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/e3b0111c93df3686061cb2c65054f9216ed265e5"><code>e3b0111</code></a>
鈿欙笍 [Maintenance]: Add afterall to codespell ignore words list (<a
href="https://redirect.github.com/psmodule/github-script/issues/85">#85</a>)</li>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/2d8efc6a869808747c9e72976542be4d3464d7e0"><code>2d8efc6</code></a>
Bump super-linter/super-linter from 8.4.0 to 8.5.0 (<a
href="https://redirect.github.com/psmodule/github-script/issues/84">#84</a>)</li>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/611c5dcb30160e3797af3a3789f7cc0d2738ec9d"><code>611c5dc</code></a>
鈿欙笍 [Maintenance]: Update super-linter to v8.4.0 (<a
href="https://redirect.github.com/psmodule/github-script/issues/83">#83</a>)</li>
<li><a
href="https://github.com/PSModule/GitHub-Script/commit/99556fc49acee71068e89a8ad67f434b467da83c"><code>99556fc</code></a>
鈿欙笍 [Maintenance]: Align workflows across action repositories (<a
href="https://redirect.github.com/psmodule/github-script/issues/82">#82</a>)</li>
<li>See full diff in <a
href="https://github.com/psmodule/github-script/compare/0097f3bbe3f413f3b577b9bcc600727b0ca3201a...1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=PSModule/GitHub-Script&package-manager=github_actions&previous-version=1.7.10&new-version=1.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marius Storhaug <marstor@hotmail.com>
Assets 2
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.