Refactor hardcoded actions/github-script SHA to dynamic resolution - #8719
Merged
Conversation
…hData Replace hardcoded SHA 60a0d83039c74a4aee543508d2ffcb1c3799cdea (v7.0.1) with dynamic resolution that automatically uses the latest version from action_pins.json (currently v8.0.0 with SHA ed597411d8f924073f98dfc5c65a23a2325f34cd). Changes: - Use GetActionPinWithData() in generateGitHubMCPLockdownDetectionStep - Use constants.DefaultGitHubScriptVersion for version parameter - Add error handling with fallback to version tag - All tests pass with new SHA resolution Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor actions/github-script calls in .go compiler
Refactor hardcoded actions/github-script SHA to dynamic resolution
Jan 3, 2026
pelikhan
marked this pull request as ready for review
January 3, 2026 06:49
3 tasks
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.
The
generateGitHubMCPLockdownDetectionStepfunction used a hardcoded SHA foractions/github-script@v7.0.1, preventing automatic updates when newer versions are available inaction_pins.json.Changes
GetActionPinWithData()call usingconstants.DefaultGitHubScriptVersioned597411d8f924073f98dfc5c65a23a2325f34cd)Before:
After:
Lock files automatically regenerated with updated SHA. Future version updates in
action_pins.jsonwill propagate automatically.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login ithub-script/git/ref/tags/v8 infocmp e/git d-artifact.git d-artifact.git /usr/bin/infocmp-v e/git api /ref/tags/v8 --jq(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.