relock: convert to composite action, build from source · github/gh-actions-lock@d65486d · GitHub
Skip to content

Commit d65486d

Browse files
committed
relock: convert to composite action, build from source
Same pattern as the lint action — avoids gh extension install cross-repo token issues. Reusable workflow now delegates to the composite action.
1 parent da8ddbe commit d65486d

4 files changed

Lines changed: 48 additions & 55 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 2 additions & 1 deletion

‎.github/workflows/relock.yml‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎actions/lint/action.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ inputs:
99
ignore-categories:
1010
description: Comma-separated finding categories to treat as warnings instead of errors (e.g. "local-action")
1111
required: false
12-
default: ""
13-
token:
14-
description: GitHub token used by gh actions-lock for API calls. Defaults to github.token.
15-
required: false
16-
default: ${{ github.token }}
12+
default: "self-hosted-runner"
1713

1814
runs:
1915
using: composite
@@ -35,4 +31,4 @@ runs:
3531
shell: bash
3632
run: ${{ github.action_path }}/../../script/lockfile-lint.sh "$RUNNER_TEMP/gh-actions-lock" "${{ inputs.ignore-categories }}" ${{ inputs.extra-flags }}
3733
env:
38-
GH_TOKEN: ${{ inputs.token }}
34+
GH_TOKEN: ${{ github.token }}

‎actions/relock/action.yml‎

Lines changed: 44 additions & 0 deletions

0 commit comments

Comments
 (0)