Skip to content

Commit eaf6647

Browse files
committed
ci(scratch): one-off actions.lock regeneration for the fix branch (not for merge)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019a95kk88TZ1iegsBK3kox3
1 parent b689a74 commit eaf6647

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# ONE-OFF, scratch branch only, deleted after use. Regenerates the fix branch's
3+
# actions.lock with the estate repair order (regen_lock in
4+
# standards/scripts/regen-dependabot-locks.sh), runs the governance gate's own
5+
# check against the result, and prints the lock base64-encoded. It has no
6+
# `uses:` steps, so it needs no lock entry to start. It writes nothing back:
7+
# the lock reaches the repository in a reviewed PR.
8+
name: one-off actions.lock regeneration
9+
on:
10+
push:
11+
branches: [claude/new-session-th4e9w-lockregen]
12+
permissions:
13+
contents: read
14+
jobs:
15+
regen:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 20
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
REPO: ${{ github.repository }}
21+
STANDARDS_REGEN_SHA: 333b06a01db1874ffedb2de1bfabb195640927c7
22+
STANDARDS_GATE_SHA: 333b06a01db1874ffedb2de1bfabb195640927c7
23+
steps:
24+
- name: Regenerate the repair branch's actions.lock and check it with the gate
25+
run: |
26+
set -uo pipefail
27+
git clone --quiet --branch claude/new-session-th4e9w "https://github.com/$REPO.git" pb
28+
git -C pb log --oneline -1
29+
git clone --quiet https://github.com/hyperpolymath/standards.git std
30+
git -C std worktree add --quiet --detach ../std-regen "$STANDARDS_REGEN_SHA"
31+
git -C std worktree add --quiet --detach ../std-gate "$STANDARDS_GATE_SHA"
32+
sudo apt-get install -y -qq gawk >/dev/null
33+
gh extension install github/gh-actions-lock --pin v0.2.0
34+
gh actions-lock --version
35+
# The repair chain without a gh actions-lock fix-mode pass (it drops
36+
# records it cannot re-resolve).
37+
export GH_BIN=gh
38+
for s in relock-sha-keys complete-job-refs close-lock prune-stale check-lock-sync; do
39+
(cd pb && { bash ../std-regen/scripts/$s.sh .github/workflows && echo "$s RC=0" || echo "$s RC=$?"; })
40+
done
41+
git -C pb status --porcelain
42+
echo "== the governance gate, as pinned by the repair branch ($STANDARDS_GATE_SHA)"
43+
(cd pb && ACTIONS_LOCK_VERIFIER="$PWD/../std-gate/scripts/update-actions-lock.sh" \
44+
bash ../std-gate/scripts/check-actions-lock-gate.sh .github/workflows); echo "GATE_RC=$?"
45+
echo "LOCK-SHA256 $(sha256sum < pb/.github/workflows/actions.lock | cut -d' ' -f1)"
46+
echo "DIFF-BEGIN"
47+
git -C pb diff -- .github/workflows/actions.lock
48+
echo "DIFF-END"

0 commit comments

Comments
 (0)