Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 23, 2026

🩹 [Patch]: Test important file changes and rename Auto-Release to Release-GHRepository

This PR updates the workflow to use the renamed release action.

Changed

  • Update Auto-Release.yml workflow to use PSModule/Release-GHRepository@v2 instead of the deprecated PSModule/Auto-Release@v1.9.5
  • Test important file changes
  • Update PSModule/GitHub-Script from v1.7.8 to v1.7.10 (SHA: 0097f3bbe3f413f3b577b9bcc600727b0ca3201a)

Summary

The PSModule/Auto-Release action has been renamed to PSModule/Release-GHRepository. This change updates the workflow configuration to reference the new action name and version.

@MariusStorhaug MariusStorhaug requested a review from a team as a code owner January 23, 2026 19:22
Copilot AI review requested due to automatic review settings January 23, 2026 19:22

- name: Get-Settings
uses: PSModule/Get-PSModuleSettings@28c1805d689dc5bfcfba7489e76c34a6d33d7da8 # v1.4.0
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Get-Settings' step
Uses Step: Get-Settings
uses 'PSModule/Get-PSModuleSettings' with ref 'feature/important-file-changes', not a pinned commit hash
runs-on: ubuntu-latest
steps:
- name: Debug
uses: PSModule/Debug@main

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Process-PSModule' step
Uses Step
uses 'PSModule/Debug' with ref 'main', not a pinned commit hash
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates GitHub Actions dependencies and modifies workflow configuration for testing and debugging purposes. The changes primarily focus on updating the actions/checkout action to v6.0.2 across all workflows, adding a Debug job, and modifying action references for testing.

Changes:

  • Updated actions/checkout from v6.0.1 (SHA: 8e8c483) to v6.0.2 (SHA: de0fac2) across 14 workflow files
  • Added new Debug job to main workflow using PSModule/Debug@main action
  • Changed PSModule/Get-PSModuleSettings action reference from v1.4.0 to feature/important-file-changes branch
  • Deleted .github/release.yml configuration file for GitHub's automatic release notes
  • Updated PR prompt template to clarify title format and add MCP tool usage guidance

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/workflow.yml Added Debug job using PSModule/Debug action
.github/workflows/Test-SourceCode.yml Updated actions/checkout to v6.0.2
.github/workflows/Test-ModuleLocal.yml Updated actions/checkout to v6.0.2
.github/workflows/Test-Module.yml Updated actions/checkout to v6.0.2 (2 instances)
.github/workflows/Publish-Module.yml Updated actions/checkout to v6.0.2
.github/workflows/Linter.yml Updated actions/checkout to v6.0.2
.github/workflows/Lint-SourceCode.yml Updated actions/checkout to v6.0.2
.github/workflows/Lint-Repository.yml Updated actions/checkout to v6.0.2
.github/workflows/Get-Settings.yml Updated actions/checkout to v6.0.2; changed Get-PSModuleSettings to feature branch
.github/workflows/Build-Site.yml Updated actions/checkout to v6.0.2
.github/workflows/Build-Module.yml Updated actions/checkout to v6.0.2
.github/workflows/Build-Docs.yml Updated actions/checkout to v6.0.2
.github/workflows/BeforeAll-ModuleLocal.yml Updated actions/checkout to v6.0.2
.github/workflows/Auto-Release.yml Updated actions/checkout to v6.0.2
.github/workflows/AfterAll-ModuleLocal.yml Updated actions/checkout to v6.0.2
.github/release.yml Deleted GitHub release notes configuration
.github/prompts/PSModule.pr.prompt.md Clarified PR title format and added MCP tool guidance


- name: Get-Settings
uses: PSModule/Get-PSModuleSettings@28c1805d689dc5bfcfba7489e76c34a6d33d7da8 # v1.4.0
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action reference is using a feature branch feature/important-file-changes instead of a pinned commit SHA or version tag. Using feature branches in production workflows can lead to unexpected behavior if the branch is updated, rebased, or deleted. For production workflows, it's recommended to use either a pinned commit SHA (with version comment) or a stable version tag.

Suggested change
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
uses: PSModule/Get-PSModuleSettings@v1

Copilot uses AI. Check for mistakes.
runs-on: ubuntu-latest
steps:
- name: Debug
uses: PSModule/Debug@main
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action PSModule/Debug@main references the main branch instead of a pinned commit SHA or version tag. Using branch references in production workflows can lead to unexpected behavior if the branch is updated with breaking changes. For production workflows, it's recommended to use either a pinned commit SHA (with version comment) or a stable version tag.

Suggested change
uses: PSModule/Debug@main
uses: PSModule/Debug@v1

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

ℹ️ No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

  • src/** - Module source code
  • examples/** - Example scripts
  • README.md - Documentation
  • .github/workflows/Process-PSModule.yml - Workflow configuration

Build and test stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

1 similar comment
@github-actions
Copy link

ℹ️ No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

  • src/** - Module source code
  • examples/** - Example scripts
  • README.md - Documentation
  • .github/workflows/Process-PSModule.yml - Workflow configuration

Build and test stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

Copilot AI review requested due to automatic review settings January 25, 2026 17:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.


- name: Get-Settings
uses: PSModule/Get-PSModuleSettings@28c1805d689dc5bfcfba7489e76c34a6d33d7da8 # v1.4.0
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action reference uses an unstable feature branch instead of a stable release version. Feature branches can be force-pushed, deleted, or change unexpectedly, which could break the workflow or introduce security risks. For production workflows, always pin to a specific commit SHA or semantic version tag for stability and security.

Suggested change
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
uses: PSModule/Get-PSModuleSettings@v1

Copilot uses AI. Check for mistakes.
@MariusStorhaug MariusStorhaug changed the title Test/important file changes 🧪 [Test]: Important file changes detection Jan 25, 2026
Copilot AI review requested due to automatic review settings January 25, 2026 21:32
@MariusStorhaug MariusStorhaug changed the title 🧪 [Test]: Important file changes detection 🩹[Patch]: Test important file changes and rename Auto-Release to Release-GHRepository Jan 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.


- name: Auto-Release
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The action name has changed from 'PSModule/Auto-Release' to 'PSModule/Release-GHRepository'. While using a commit SHA is good practice, the version comment indicates 'v2' but there's no verification that this commit actually corresponds to the v2 release. Consider using a tag reference like '@v2' instead of a commit SHA with a comment, or verify that the commit SHA matches the v2 tag to ensure the comment is accurate.

Suggested change
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # PSModule/Release-GHRepository pinned commit

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings January 25, 2026 22:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.


- name: Get-Settings
uses: PSModule/Get-PSModuleSettings@28c1805d689dc5bfcfba7489e76c34a6d33d7da8 # v1.4.0
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action reference uses a feature branch (@feature/important-file-changes) instead of a commit SHA with a version tag. This is inconsistent with all other PSModule action references in the codebase, which use the pattern @ # . For example, line 34 in Auto-Release.yml uses 'PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1'.

Using feature branches in production workflows is risky because:

  1. The branch can be force-pushed or deleted, breaking the workflow
  2. It makes it unclear which version is being used
  3. It prevents rollback to known-good versions

Consider using a commit SHA reference with a version tag comment for consistency and stability.

Suggested change
uses: PSModule/Get-PSModuleSettings@feature/important-file-changes
uses: PSModule/Get-PSModuleSettings@d34db33fd34db33fd34db33fd34db33fd34db33f # v1.0.0

Copilot uses AI. Check for mistakes.
runs-on: ubuntu-latest
steps:
- name: Debug
uses: PSModule/Debug@main
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action reference uses a branch name (@main) instead of a commit SHA with a version tag. This is inconsistent with all other PSModule action references in the codebase except for the Get-PSModuleSettings action on line 59 of Get-Settings.yml. For example, line 34 in Auto-Release.yml uses 'PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1'.

Using branch references in production workflows is risky because:

  1. The branch can be updated without notice, potentially introducing breaking changes
  2. It makes it difficult to track which version is being used
  3. It prevents reproducible builds

Consider using a commit SHA reference with a version tag comment for consistency and stability.

Suggested change
uses: PSModule/Debug@main
uses: PSModule/Debug@0000000000000000000000000000000000000000 # v1.0.0

Copilot uses AI. Check for mistakes.
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.

2 participants