Skip to content

Releases: PSModule/Invoke-ScriptAnalyzer

v4.1.1

26 Nov 09:25
0b13023

Choose a tag to compare

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

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

v4.1.0

12 Oct 21:13
70815e8

Choose a tag to compare

🚀[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.yml to define the new input and pass it via environment variables.
  • Updated README.md with input documentation.

v4.0.2

12 Oct 12:30
6bfa95a

Choose a tag to compare

🩹 [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.ps1 in both tests/srcTestRepo/src/variables/public/ and tests/srcWithManifestTestRepo/src/variables/public/ for encoding consistency.

v4.0.1

11 Oct 19:05
24cac04

Choose a tag to compare

🩹 [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/checkout steps in workflow files now set persist-credentials: false for 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.md README.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

11 Oct 15:36
1783982

Choose a tag to compare

🌟[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 Settings input from action.yml, the workflow, and environment variables, so users now always specify a SettingsFilePath for 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.md to remove references to the old Settings input and predefined settings types, clarifying that users should provide a settings file via SettingsFilePath. Usage instructions and examples are revised accordingly. [1] [2] [3]

Implementation Changes:

  • Refactored scripts/main.ps1 to resolve only the SettingsFilePath and validate its existence, removing all logic related to the Settings input and its switch statement.

Test and Example Improvements:

  • Added a new tests/srcWithManifestTestRepo/tests/SourceCode.Settings.psd1 file containing example analyzer rules for source code analysis.

v3.0.2

05 Oct 10:24
c1d451e

Choose a tag to compare

🩹 [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: Added dependencies and github-actions labels to GitHub Actions dependency update pull requests.

v3.0.1

02 Sep 19:07
15d183d

Choose a tag to compare

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

⚠️ 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

v3.0.0

09 Mar 19:43
bbe66b8

Choose a tag to compare

What's Changed

🌟 Breaking Changes

Full Changelog: v2...v3.0.0

v2.1.0

09 Mar 17:35
03e40bf

Choose a tag to compare

What's Changed

🚀 New Features

Full Changelog: v2...v2.1.0

v2.0.9

09 Mar 14:59
6e5d4df

Choose a tag to compare

What's Changed

Other Changes

  • 🩹 [Patch]: Remove GITHUB_TOKEN environment variable from Auto-Release by @MariusStorhaug in #13

Full Changelog: v2...v2.0.9