🔒 Security Auto-Fix: CodeQL Alerts#47
Closed
xaostech-security[bot] wants to merge 1 commit intomainfrom
Closed
Conversation
This was referenced Feb 22, 2026
This was referenced Feb 22, 2026
This was referenced Feb 22, 2026
xaoscience
added a commit
that referenced
this pull request
Feb 22, 2026
Replace git-based merge operations with GitHub API merge to eliminate code injection risks. Follows GitHub Security Lab zero-trust pattern: privileged workflows must never checkout untrusted PR code. Changes: - Merge PR from workflow_run: Use github.rest.pulls.merge() API - Merge PRs from manual/anglicise: Use github.rest.pulls.merge() API - Remove GPG signing requirement (API doesn't support custom signatures) - Remove redundant API fallback step (all merges now use API) - Remove git fetch/merge operations that accessed untrusted PR refs Fixes CodeQL alerts #47, #50 (untrusted-checkout/high) Alert #8 appears to be false positive - guard job never checks out PR code Addresses issue #95
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.
Automated Security Fixes
This PR contains automatic fixes for security alerts detected by CodeQL.
Alerts Addressed:
Changes Made:
Verification Needed:
Review required - validate that fixes don't break workflow functionality
Auto-generated by security-autofix workflow