Releases: PSModule/Invoke-ScriptAnalyzer
v4.1.1
Bump actions/checkout from 5 to 6 (#22)
Bumps actions/checkout from 5 to 6.
Release notes
Sourced from actions/checkout's releases.
v6.0.0
What's Changed
- Update README to include Node.js 24 support details and requirements by
@salmanmkcin actions/checkout#2248- Persist creds to a separate file by
@ericsciplein actions/checkout#2286- v6-beta by
@ericsciplein actions/checkout#2298- update readme/changelog for v6 by
@ericsciplein actions/checkout#2311Full Changelog: actions/checkout@v5.0.0...v6.0.0
v6-beta
What's Changed
Updated persist-credentials to store the credentials under
$RUNNER_TEMPinstead 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
- Port v6 cleanup to v5 by
@ericsciplein actions/checkout#2301Full Changelog: actions/checkout@v5...v5.0.1
Changelog
Sourced from actions/checkout's changelog.
Changelog
V6.0.0
- Persist creds to a separate file by
@ericsciplein actions/checkout#2286- Update README to include Node.js 24 support details and requirements by
@salmanmkcin actions/checkout#2248V5.0.1
- Port v6 cleanup to v5 by
@ericsciplein actions/checkout#2301V5.0.0
- Update actions checkout to use node 24 by
@salmanmkcin actions/checkout#2226V4.3.1
- Port v6 cleanup to v4 by
@ericsciplein actions/checkout#2305V4.3.0
- docs: update README.md by
@motssin actions/checkout#1971- Add internal repos for checking out multiple repositories by
@mouismailin actions/checkout#1977- Documentation update - add recommended permissions to Readme by
@benwellsin actions/checkout#2043- Adjust positioning of user email note and permissions heading by
@joshmgrossin actions/checkout#2044- Update README.md by
@nebuk89in actions/checkout#2194- Update CODEOWNERS for actions by
@TingluoHuangin actions/checkout#2224- Update package dependencies by
@salmanmkcin actions/checkout#2236v4.2.2
url-helper.tsnow leverages well-known environment variables by@jww3in actions/checkout#1941- Expand unit test coverage for
isGhesby@jww3in actions/checkout#1946v4.2.1
- Check out other refs/* by commit if provided, fall back to ref by
@orhantoyin actions/checkout#1924v4.2.0
- Add Ref and Commit outputs by
@lucacomein actions/checkout#1180- Dependency updates by
@dependabot- actions/checkout#1777, actions/checkout#1872v4.1.7
- Bump the minor-npm-dependencies group across 1 directory with 4 updates by
@dependabotin actions/checkout#1739- Bump actions/checkout from 3 to 4 by
@dependabotin actions/checkout#1697- Check out other refs/* by commit by
@orhantoyin actions/checkout#1774- Pin actions/checkout's own workflows to a known, good, stable version. by
@jww3in actions/checkout#1776v4.1.6
- Check platform to set archive extension appropriately by
@cory-millerin actions/checkout#1732v4.1.5
- Update NPM dependencies by
@cory-millerin actions/checkout#1703- Bump github/codeql-action from 2 to 3 by
@dependabotin actions/checkout#1694- Bump actions/setup-node from 1 to 4 by
@dependabotin actions/checkout#1696- Bump actions/upload-artifact from 2 to 4 by
@dependabotin actions/checkout#1695
... (truncated)
Commits
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-d...
v4.1.0
🚀[Feature]: Add Notice_Mode input to control test completion notifications (#21)
This release introduces a new Notice_Mode input parameter to control when GitHub notices are displayed for test completion. By default, notices are now only shown on test failure, providing more flexibility in managing action output verbosity.
What's New
- New Input:
Notice_Mode- Controls when GitHub notices are displayed for test completion:Full: Show notices on both success and failure.Failed(default): Show notices only on failure.None: Disable notices entirely.
This provides more flexibility in managing action output verbosity.
Changes
- Updated
action.ymlto define the new input and pass it via environment variables. - Updated
README.mdwith input documentation.
v4.0.2
🩹 [Patch]: Encode all PowerShell files using UTF8 with BOM (#20)
Description
This pull request introduces a minor change to the Planets.ps1 files in both srcTestRepo and srcWithManifestTestRepo. The only difference is the addition of a Unicode Byte Order Mark (BOM) at the beginning of each file, which does not affect the functionality of the scripts.
- Added a Unicode BOM to the start of
Planets.ps1in bothtests/srcTestRepo/src/variables/public/andtests/srcWithManifestTestRepo/src/variables/public/for encoding consistency.
v4.0.1
🩹 [Patch]: Default to built-in Invoke-ScriptAnalyzer settings (#19)
This pull request introduces improved handling of the settings file for the ScriptAnalyzer GitHub Action, adds a new test scenario for default settings, and updates CI workflows and documentation to reflect these changes. The main goals are to make the settings file optional, clarify precedence, and ensure robust testing and reporting.
Key changes:
Settings file handling and usage:
- The action now treats the settings file as optional; if not provided or not found, it falls back to ScriptAnalyzer defaults. Settings file precedence is clarified and documented, and code is updated to handle missing files gracefully without throwing errors. (
scripts/main.ps1[1]scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1[2] [3] [4]README.md[5]
Continuous Integration workflow improvements:
-
All
actions/checkoutsteps in workflow files now setpersist-credentials: falsefor improved security and consistency. (.github/workflows/Action-Test.yml[1] [2] [3] [4] [5].github/workflows/Auto-Release.yml[6].github/workflows/Linter.yml[7] -
A new test job,
ActionTestSrcWithManifestDefault, is added to verify the action's behavior when no settings file is present (i.e., default settings are used). The workflow aggregation and environment variable naming are updated for clarity and maintainability. (.github/workflows/Action-Test.yml[1] [2]tests/Get-AggregatedStatus.ps1[3]
Documentation and configuration updates:
-
The README is updated to clearly explain settings file precedence and provide usage examples for all scenarios (custom, default, and none). (
README.mdREADME.mdL91-R125) -
Linter workflow configuration is updated to include new validation options and disables certain Biome and zizmor validations for clarity. (
.github/workflows/Linter.yml.github/workflows/Linter.ymlR34-R36)
v4.0.0
🌟[Major]: Remove Settings with predefined settings (#18)
Description
This pull request simplifies the configuration of the script analyzer action by removing the Settings input (which previously allowed selecting between Module, SourceCode, or Custom modes) in favor of always using a SettingsFilePath. Documentation, workflow, and implementation are updated to reflect this streamlined approach. Additionally, a new example settings file for source code analysis is added for clarity.
Configuration and API Simplification:
- Removed the
Settingsinput fromaction.yml, the workflow, and environment variables, so users now always specify aSettingsFilePathfor analyzer configuration. The default settings file path is now.github/linters/.powershell-psscriptanalyzer.psd1. [1] [2] [3] [4] [5] [6] [7]
Documentation Updates:
- Updated
README.mdto remove references to the oldSettingsinput and predefined settings types, clarifying that users should provide a settings file viaSettingsFilePath. Usage instructions and examples are revised accordingly. [1] [2] [3]
Implementation Changes:
- Refactored
scripts/main.ps1to resolve only theSettingsFilePathand validate its existence, removing all logic related to theSettingsinput and its switch statement.
Test and Example Improvements:
- Added a new
tests/srcWithManifestTestRepo/tests/SourceCode.Settings.psd1file containing example analyzer rules for source code analysis.
v3.0.2
🩹 [Patch]: Update Dependabot configuration to include labels for GitHub Actions (#17)
Description
This pull request updates the Dependabot configuration to automatically add labels to pull requests related to GitHub Actions dependencies.
Dependabot configuration improvements:
.github/dependabot.yml: Addeddependenciesandgithub-actionslabels to GitHub Actions dependency update pull requests.
v3.0.1
Bump actions/checkout from 4 to 5 (#16)
Bumps actions/checkout from 4 to 5.
Release notes
Sourced from actions/checkout's releases.
v5.0.0
What's Changed
- Update actions checkout to use node 24 by
@salmanmkcin actions/checkout#2226- Prepare v5.0.0 release by
@salmanmkcin actions/checkout#2238
⚠️ Minimum Compatible Runner Versionv2.327.1
Release NotesMake 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
- docs: update README.md by
@motssin actions/checkout#1971- Add internal repos for checking out multiple repositories by
@mouismailin actions/checkout#1977- Documentation update - add recommended permissions to Readme by
@benwellsin actions/checkout#2043- Adjust positioning of user email note and permissions heading by
@joshmgrossin actions/checkout#2044- Update README.md by
@nebuk89in actions/checkout#2194- Update CODEOWNERS for actions by
@TingluoHuangin actions/checkout#2224- Update package dependencies by
@salmanmkcin actions/checkout#2236- Prepare release v4.3.0 by
@salmanmkcin actions/checkout#2237New Contributors
@motssmade their first contribution in actions/checkout#1971@mouismailmade their first contribution in actions/checkout#1977@benwellsmade their first contribution in actions/checkout#2043@nebuk89made their first contribution in actions/checkout#2194@salmanmkcmade their first contribution in actions/checkout#2236Full Changelog: actions/checkout@v4...v4.3.0
v4.2.2
What's Changed
url-helper.tsnow leverages well-known environment variables by@jww3in actions/checkout#1941- Expand unit test coverage for
isGhesby@jww3in actions/checkout#1946Full Changelog: actions/checkout@v4.2.1...v4.2.2
v4.2.1
What's Changed
- Check out other refs/* by commit if provided, fall back to ref by
@orhantoyin actions/checkout#1924New Contributors
@Jcambassmade their first contribution in actions/checkout#1919Full Changelog: actions/checkout@v4.2.0...v4.2.1
... (truncated)
Changelog
Sourced from actions/checkout's changelog.
Changelog
V5.0.0
- Update actions checkout to use node 24 by
@salmanmkcin actions/checkout#2226V4.3.0
- docs: update README.md by
@motssin actions/checkout#1971- Add internal repos for checking out multiple repositories by
@mouismailin actions/checkout#1977- Documentation update - add recommended permissions to Readme by
@benwellsin actions/checkout#2043- Adjust positioning of user email note and permissions heading by
@joshmgrossin actions/checkout#2044- Update README.md by
@nebuk89in actions/checkout#2194- Update CODEOWNERS for actions by
@TingluoHuangin actions/checkout#2224- Update package dependencies by
@salmanmkcin actions/checkout#2236v4.2.2
url-helper.tsnow leverages well-known environment variables by@jww3in actions/checkout#1941- Expand unit test coverage for
isGhesby@jww3in actions/checkout#1946v4.2.1
- Check out other refs/* by commit if provided, fall back to ref by
@orhantoyin actions/checkout#1924v4.2.0
- Add Ref and Commit outputs by
@lucacomein actions/checkout#1180- Dependency updates by
@dependabot- actions/checkout#1777, actions/checkout#1872v4.1.7
- Bump the minor-npm-dependencies group across 1 directory with 4 updates by
@dependabotin actions/checkout#1739- Bump actions/checkout from 3 to 4 by
@dependabotin actions/checkout#1697- Check out other refs/* by commit by
@orhantoyin actions/checkout#1774- Pin actions/checkout's own workflows to a known, good, stable version. by
@jww3in actions/checkout#1776v4.1.6
- Check platform to set archive extension appropriately by
@cory-millerin actions/checkout#1732v4.1.5
- Update NPM dependencie...
v3.0.0
What's Changed
🌟 Breaking Changes
- 🌟 [Major: Bump
Invoke-Pesterto v4 by @MariusStorhaug in https://github.com//pull/15
Full Changelog: v2...v3.0.0
v2.1.0
What's Changed
🚀 New Features
- 🚀 [Feature]: Add more inputs outputs from
Pesterby @MariusStorhaug in #14
Full Changelog: v2...v2.1.0
v2.0.9
What's Changed
Other Changes
- 🩹 [Patch]: Remove GITHUB_TOKEN environment variable from Auto-Release by @MariusStorhaug in #13
Full Changelog: v2...v2.0.9