File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ workflows:
99 - ' github/setup-goproxy@v1.1.0'
1010 ' .github/workflows/relock.yml ' :
1111 - ' actions/checkout@v6.0.2'
12+ - ' github/gh-actions-lock@main'
1213 ' .github/workflows/sync-early-access-release.yml ' :
1314 - ' actions/checkout@v6.0.2'
1415 ' .github/workflows/test.yml ' :
@@ -65,7 +66,7 @@ dependencies:
6566 - ' actions/setup-go@v5'
6667 ' github/gh-actions-lock@main ' :
6768 ref : ' main'
68- commit : ' sha1-419a59e0d36ec15d649200df42e3092fa0c117b7 '
69+ commit : ' sha1-da8ddbe47a719ba4dd60cde61bb96c4301b98e61 '
6970 owner_id : 9919
7071 repo_id : 1217640442
7172 ' github/setup-goproxy@v1.1.0 ' :
Load diff This file was deleted.
Original file line number Diff line number Diff line change 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
1814runs :
1915 using : composite
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 }}
Original file line number Diff line number Diff line change 1+ name : Relock actions.lock
2+ description : Relock the actions.lock file after dependency updates (e.g. Dependabot PRs)
3+
4+ inputs :
5+ extra-flags :
6+ description : Extra flags passed to gh actions-lock (e.g. "--allow-runners foo")
7+ required : false
8+ default : " "
9+
10+ runs :
11+ using : composite
12+ steps :
13+ - name : OIDC Setup for goproxy
14+ uses : github/setup-goproxy@v1.1.0
15+
16+ - uses : actions/setup-go@v5
17+ with :
18+ go-version-file : ${{ github.action_path }}/../../go.mod
19+
20+ - name : Build gh-actions-lock
21+ shell : bash
22+ run : |
23+ cd "${{ github.action_path }}/../.."
24+ go build -o "$RUNNER_TEMP/gh-actions-lock" ./cmd/gh-actions-lock
25+
26+ - name : Relock
27+ shell : bash
28+ run : |
29+ "$RUNNER_TEMP/gh-actions-lock" --no-onboard --no-interactive -A ${{ inputs.extra-flags }}
30+ env :
31+ GH_TOKEN : ${{ github.token }}
32+
33+ - name : Commit updated lockfile
34+ shell : bash
35+ run : |
36+ git config user.name "github-actions[bot]"
37+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+ git add .github/workflows/actions.lock
39+ if git diff --cached --quiet; then
40+ echo "Lockfile already up to date"
41+ else
42+ git commit -m "Relock actions.lock after dependency update"
43+ git push
44+ fi
You can’t perform that action at this time.
0 commit comments