🩹 [Patch]: Pin GitHub Actions to specific versions for improved security#23
Merged
MariusStorhaug merged 3 commits intomainfrom Jan 22, 2026
Merged
Conversation
- Add explicit checkout ref to base branch to prevent untrusted PR code execution - Add zizmor ignore annotation with justification for pull_request_target usage - Security mitigation: Only base branch code is checked out, never PR code - Zizmor linter now passes without errors Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix dangerous-triggers linter error in Auto-Release workflow
Fix dangerous-triggers audit: secure pull_request_target in Auto-Release workflow
Jan 22, 2026
Member
|
@copilot Lets change it and analyze the implications to it being run on pull_request trigger vs the pull_request_target. |
- Remove pull_request_target trigger and use pull_request instead - Remove explicit base branch checkout (not needed with pull_request) - Remove zizmor ignore annotation (no longer needed) - Zizmor linter passes without errors Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Contributor
Author
Changed to Key implications: 🔴 Breaking for fork PRs:
✅ Works for same-repo PRs:
Recommendation: This change is suitable if the repository is private or only accepts PRs from collaborators (not forks). For public repos accepting fork contributions, |
Copilot
AI
changed the title
Fix dangerous-triggers audit: secure pull_request_target in Auto-Release workflow
Fix dangerous-triggers audit: switch to pull_request trigger in Auto-Release workflow
Jan 22, 2026
MariusStorhaug
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Actions are now pinned to specific commit SHAs instead of version tags, improving security by preventing supply chain attacks through tag manipulation. Additionally, Dependabot has been configured to run daily with a 7-day cooldown to keep dependencies up-to-date automatically.
GitHub Actions SHA pinning
All workflow files now reference actions by their full commit SHA rather than version tags. This ensures workflows always use a verified, immutable version of each action.
Changed actions:
actions/checkout@v5→actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8(v6.0.1)PSModule/Auto-Release@v1→PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356(v1.9.5)super-linter/super-linter@latest→super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99(v8.3.2)PSModule/GitHub-Script@v1→PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca(v1.7.8)Dependabot configuration
Dependabot now checks for updates daily with a 7-day cooldown between updates, replacing the previous weekly schedule. This provides faster awareness of security updates while avoiding excessive noise.
Linter configuration
Added configuration to disable validation checks that are not applicable to this repository:
VALIDATE_BIOME_FORMAT: falseVALIDATE_JSCPD: false