lint action: build from source with goproxy by nodeselector · Pull Request #64 · github/gh-actions-lock · GitHub
Skip to content

lint action: build from source with goproxy - #64

Merged
nodeselector merged 2 commits into
mainfrom
nodeselector-dependabot-relock-workflow
Jun 25, 2026
Merged

nodeselector merged 2 commits into
mainfrom
nodeselector-dependabot-relock-workflow

Conversation

@nodeselector

@nodeselector nodeselector commented Jun 25, 2026 •

Copy link
Copy Markdown
Collaborator

Build gh-actions-lock from source instead of gh extension install. Avoids cross-repo token issues since the action source is already checked out when referenced as github/gh-actions-lock/actions/lint@main. Hack until this repo is public.

Changes:

  • Replace gh extension install with go build from the checked-out source
  • Add github/setup-goproxy for private Go dependency access
  • Add token input for API calls (defaults to github.token)
  • Add ignore-categories input (from PR Add reusable relock workflow for Dependabot PRs #63)

Build gh-actions-lock from source instead of gh extension install.
Avoids cross-repo token issues since the action source is already
checked out. Adds goproxy OIDC setup for private Go dependencies
and a token input for API calls.
Copilot AI review requested due to automatic review settings June 25, 2026 00:49
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 00:50
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 00:50

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 composite action currently has critical portability and runtime issues (expression-based input default + dependency on a non-public action) that can cause immediate failures for consumers.

Pull request overview

Updates the actions/lint composite action to run gh-actions-lock from the checked-out repository source (instead of installing it as a gh extension) and adds new inputs to support richer CI usage.

Changes:

  • Build gh-actions-lock via go build and run the resulting binary during lint.
  • Add token and ignore-categories inputs and wire them into the lint invocation.
  • Add a setup-goproxy step intended to support private Go dependency access.
File summaries
File Description
actions/lint/action.yml Switch lint action from gh extension install to building a local binary; add token/ignore-categories inputs; introduce goproxy setup step.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 3
  • 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/lint/action.yml
Comment on lines +13 to +16
token:
description: GitHub token used by gh actions-lock for API calls. Defaults to github.token.
required: false
default: ${{ github.token }}
Comment thread actions/lint/action.yml
Comment on lines 37 to +38
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.token }}
Comment thread actions/lint/action.yml
Comment on lines +21 to +23
GitHub Advanced Security started work on behalf of nodeselector June 25, 2026 01:29
GitHub Advanced Security finished work on behalf of nodeselector June 25, 2026 01:30
@nodeselector
nodeselector merged commit da8ddbe into main Jun 25, 2026
12 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