relock: convert to composite action, build from source by nodeselector · Pull Request #65 · github/gh-actions-lock · GitHub
Skip to content

relock: convert to composite action, build from source - #65

Merged
nodeselector merged 1 commit into
mainfrom
nodeselector-dependabot-relock-workflow
Jun 25, 2026
Merged

nodeselector merged 1 commit into
mainfrom
nodeselector-dependabot-relock-workflow

Conversation

@nodeselector

Copy link
Copy Markdown
Collaborator

Same pattern as the lint action — builds gh-actions-lock from source to avoid cross-repo gh extension install token issues.

  • New actions/relock composite action (goproxy + go build + relock + commit/push)
  • Reusable workflow delegates to the composite action
  • Callers need id-token: write for goproxy OIDC

Copilot AI review requested due to automatic review settings June 25, 2026 12:43
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:44
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:44
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from 6bb1259 to 274abcc Compare June 25, 2026 12:45
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:45
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Not ready to approve

The new composite action’s token input documentation is inconsistent with how the token is actually used (it does not affect the git push step).

Pull request overview

Converts the relock automation to follow the same “build from source” composite-action pattern used by the existing lint action, avoiding cross-repo gh extension install token/permission pitfalls and centralizing relock logic.

Changes:

  • Adds a new actions/relock composite action that sets up goproxy, builds gh-actions-lock, relocks, and commits/pushes updates.
  • Updates the reusable relock workflow to delegate to the composite action (and requests id-token: write).
  • Updates actions.lock to reflect the new workflow dependency.
File summaries
File Description
actions/relock/action.yml Introduces the composite relock action (setup goproxy + build + relock + commit/push).
.github/workflows/relock.yml Switches reusable relock workflow steps to call the new composite action and adds OIDC permission.
.github/workflows/actions.lock Regenerates lockfile entries to include the new action dependency used by relock workflow.

Review details

  • Files reviewed: 2/3 changed files
  • Comments generated: 1
  • Review effort level: Low

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread actions/relock/action.yml Outdated
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from 274abcc to b1bd312 Compare June 25, 2026 12:48
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:48
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:49
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from b1bd312 to 0934195 Compare June 25, 2026 12:53
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:54
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:54
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from 0934195 to effca6f Compare June 25, 2026 12:57
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:57
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:57
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from effca6f to 1a7866c Compare June 25, 2026 12:58
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 12:59
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 12:59
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from 1a7866c to 31922c2 Compare June 25, 2026 13:05
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 13:05
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 13:06
Same pattern as the lint action — avoids gh extension install
cross-repo token issues. Reusable workflow now delegates to
the composite action.
@nodeselector
nodeselector force-pushed the nodeselector-dependabot-relock-workflow branch from 31922c2 to d65486d Compare June 25, 2026 13:11
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 13:11
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 13:12
@nodeselector
nodeselector merged commit 6a5ff0d into main Jun 25, 2026
10 of 11 checks passed
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