Skip to content

Releases: PSModule/GitHub-Script

v1.8.0

16 May 13:55
1ee97bb

Choose a tag to compare

🚀 [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.

v1.7.10

25 Jan 21:51
0097f3b

Choose a tag to compare

🩹 [Patch]: Standardize project structure and rename release workflow (#81)

This PR standardizes the project structure and updates workflows to align with PSModule conventions.

Changed

  • Rename Auto-Release.yml workflow to Release.yml for consistency
  • Update release action from PSModule/Auto-Release@v1.9.5 to PSModule/Release-GHRepository@v2
  • Rename scripts/ folder to src/ to follow standard project layout
  • Update action.yml to reference scripts from new src/ location
  • Add linter workflow configuration

Removed

  • Remove unused .jscpd.json linter configuration file

Summary

This PR brings the GitHub-Script action in line with PSModule's standardized project structure. The scripts/ folder is renamed to src/ for consistency across all actions, and the release workflow is updated to use the renamed Release-GHRepository action.

v1.7.9

22 Jan 22:13
e827bea

Choose a tag to compare

🩹[Patch]: Update workflow configurations (#79)

Updates workflow configurations to use the latest pinned action versions for improved security and reproducibility.

  • Related to PSModule workflow standardization

Action pinning

Pinned all GitHub Actions to specific commit SHAs:

  • actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6.0.2) - Updated from v6.0.1

v1.7.8

17 Jan 00:36
2010983

Choose a tag to compare

🩹 [Patch]: Remove output access hints from logs (#55)

Removes the output access hint text from the action logs to avoid confusion when the action is used directly or nested in another composite action. The output grouping and output content display remain unchanged.

Changes

  • Remove access-hint printing in scripts/outputs.ps1
  • Simplify composite output test by removing access-pattern demo and help-text validation

Rationale

The access pattern differs for direct vs nested usage, so printed hints can be misleading. Removing the hint avoids confusion while still showing the output values.

v1.7.7

16 Jan 22:12
9fd70c8

Choose a tag to compare

🩹[Patch]: CI and workflow maintenance updates (#76)

This release updates CI and workflow maintenance for the GitHub-Script action.

Changes

  • Super-linter updated to v8.3.2 and Biome format validation disabled for this repo.
  • Checkout action pins refreshed across workflows.
  • Dependabot schedule moved to daily with a 7‑day cooldown.
  • Action test workflows now pass explicit secrets instead of inheriting.
  • Auto-Release workflow now runs on pull_request events.

Notes

  • No changes to action.yml behavior or runtime output.

v1.7.6

02 Dec 10:56
8b9d273

Choose a tag to compare

Bumps azure/login from v2.2.0 to v2.3.0 (#70)

Bumps azure/login from v2.2.0 to v2.3.0.

Changes

  • Updated version comment to use patch-level semver (# v2.3.0 instead of # v2)
  • Updated PR title and description to reference semver versions
# Before
uses: azure/login@1384c340ab2dda50fed2bee3041d1d87018aa5e8 # v2

# After  
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

v1.7.5

02 Dec 08:44
413d904

Choose a tag to compare

Bump super-linter/super-linter from 8.2.1 to 8.3.0 (#69)

Bumps super-linter/super-linter from 8.2.1 to 8.3.0.

Release notes

Sourced from super-linter/super-linter's releases.

v8.3.0

8.3.0 (2025-11-28)

🚀 Features

🐛 Bugfixes

⬆️ Dependency updates

  • bundler: bump rubocop in /dependencies in the rubocop group (#7188) (74b2444)
  • bundler: bump rubocop-rails in /dependencies in the rubocop group (#7231) (dd55c52)
  • bundler: bump the rubocop group in /dependencies with 2 updates (#7178) (3bdc919)
  • bundler: bump the rubocop group in /dependencies with 4 updates (#7202) (0e09528)
  • docker: bump python in the docker-base-images group (#7123) (41c3da1)
  • docker: bump the docker group across 1 directory with 12 updates (#7235) (b1cf27d)
  • docker: bump the docker group across 1 directory with 6 updates (#7148) (76149cf)
  • docker: bump the docker group across 1 directory with 9 updates (#7194) (45f731e)
  • npm: bump @​babel/eslint-parser in /dependencies (#7183) (197eb88)
  • npm: bump @​typescript-eslint/eslint-plugin (#7127) (2d57f06)
  • npm: bump @​typescript-eslint/eslint-plugin (#7196) (033ea99)
  • npm: bump body-parser from 2.2.0 to 2.2.1 in /dependencies (#7238) (30403f6)
  • npm: bump eslint from 9.37.0 to 9.38.0 in /dependencies (#7170) (b42af6f)
  • npm: bump eslint from 9.38.0 to 9.39.0 in /dependencies (#7191) (0cf22c8)
  • npm: bump eslint from 9.39.0 to 9.39.1 in /dependencies (#7197) (513ae8b)
  • npm: bump eslint-plugin-react-hooks (#7180) (61e4208)
  • npm: bump js-yaml from 3.14.1 to 3.14.2 in /dependencies (#7210) (29faa98)
  • npm: bump npm-groovy-lint from 15.2.1 to 15.2.2 in /dependencies (#7130) (4913825)
  • npm: bump renovate from 41.142.0 to 41.146.5 in /dependencies (#7134) (900b973)
  • npm: bump renovate from 41.151.1 to 41.161.0 in /dependencies (#7182) (1d8c2a2)
  • npm: bump renovate from 41.161.0 to 42.4.0 in /dependencies (#7198) (0a4ed30)
  • npm: bump the eslint-plugins-configs group across 1 directory with 2 updates (#7145) (c137ca9)
  • npm: bump the npm group across 1 directory with 2 updates (#7175) (f0b0ff5)
  • npm: bump the npm group across 1 directory with 3 updates (#7146) (d4d3f16)
  • npm: bump the npm group across 1 directory with 3 updates (#7195) (ad4f63c)
  • npm: bump the npm group across 1 directory with 5 updates (#7233) (5cadbf1)
  • npm: bump the npm group across 1 directory with 8 updates (#7221) (3802c52)
  • npm: bump the react group across 1 directory with 2 updates (#7190) (d6c8078)
  • npm: bump the react group across 1 directory with 4 updates (
Read more

v1.7.4

26 Nov 15:53
00547bf

Choose a tag to compare

Bump actions/checkout from 5 to 6 (#67)

Bumps actions/checkout from 5 to 6.

Release notes

Sourced from actions/checkout's releases.

v6.0.0

What's Changed

Full Changelog: actions/checkout@v5.0.0...v6.0.0

v6-beta

What's Changed

Updated persist-credentials to store the credentials under $RUNNER_TEMP instead of directly in the local git config.

This requires a minimum Actions Runner version of v2.329.0 to access the persisted credentials for Docker container action scenarios.

v5.0.1

What's Changed

Full Changelog: actions/checkout@v5...v5.0.1

Changelog

Sourced from actions/checkout's changelog.

Changelog

V6.0.0

V5.0.1

V5.0.0

V4.3.1

V4.3.0

v4.2.2

v4.2.1

v4.2.0

v4.1.7

v4.1.6

v4.1.5

... (truncated)

Commits

[Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-d...

Read more

v1.7.3

05 Oct 12:04
4f9c58a

Choose a tag to compare

Bump actions/checkout from 4 to 5 (#66)

Bumps actions/checkout from 4 to 5.

Release notes

Sourced from actions/checkout's releases.

v5.0.0

What's Changed

⚠️ Minimum Compatible Runner Version

v2.327.1
Release Notes

Make sure your runner is updated to this version or newer to use this release.

Full Changelog: actions/checkout@v4...v5.0.0

v4.3.0

What's Changed

New Contributors

Full Changelog: actions/checkout@v4...v4.3.0

v4.2.2

What's Changed

Full Changelog: actions/checkout@v4.2.1...v4.2.2

v4.2.1

What's Changed

New Contributors

Full Changelog: actions/checkout@v4.2.0...v4.2.1

... (truncated)

Changelog

Sourced from actions/checkout's changelog.

Changelog

V5.0.0

V4.3.0

v4.2.2

v4.2.1

v4.2.0

v4.1.7

v4.1.6

v4.1.5

  • Update NPM dependencie...
Read more

v1.7.2

05 Oct 10:23
2d991b7

Choose a tag to compare

🩹 [Patch]: Update Dependabot configuration to include labels for GitHub Actions (#65)

Description

This pull request introduces a Dependabot configuration to automate dependency updates for GitHub Actions workflows. This will help keep our GitHub Actions up to date and improve security and maintainability.

Dependency management automation:

  • Added a .github/dependabot.yml file to enable weekly automated updates for GitHub Actions dependencies, with appropriate labeling for tracking.