Repository navigation
Support locking GitHub Actions without a checkout - #319
Draft
mrecachinas wants to merge 1 commit into
Draft
mrecachinas wants to merge 1 commit into
mrecachinas wants to merge 1 commit into
Conversation
Read remote workflow targets through the Contents API and publish fixes as one commit, optionally on a pull request branch. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Checking or updating a repository's workflow lockfile currently requires a local checkout. This adds a remote mode so you can point
gh actions-lockat a repository, its workflows directory, or one workflow and run the same checks from anywhere.Remote mode is read-only by default and uses the Contents API to read workflows, same-repository actions, and
actions.lockat one commit.--commitpublishes the generated changes together on the selected branch.--prputs them on a new branch and opens a pull request. Publishing checks the expected branch head before writing and skips the API writes entirely when nothing changed.Example
Read-only run against this repository at the base commit (stdout):
Validation
The Go suite and
go vetpassed using the pinned SDK from its source tag. The read-only path was also exercised against GitHub; publishing was verified with mocked API requests, including a moved PR base and a no-op run.Agent assessment
Change confidence: High. The existing suite covers the checkout path, the live run confirms remote reads, and the command tests verify that workflow and lockfile changes are sent in one commit. Live publishing permissions and branch rules were not exercised.
Head revision:
aeea867acf9cd8a0442d1c498de0a7922674c469