Skip to content

Add workflow to re-pin actions-ext references - #184

Merged
timkpaine merged 1 commit into
mainfrom
tkp/auto-update-action-pins
Sep 1, 2026
Merged

Add workflow to re-pin actions-ext references#184
timkpaine merged 1 commit into
mainfrom
tkp/auto-update-action-pins

Conversation

@timkpaine

@timkpaine timkpaine commented Sep 1, 2026

Copy link
Copy Markdown
Member

The actions-ext pins inside the templates drift silently because Dependabot
cannot see them. The template workflows live at
python/**/.github/workflows/*.jinja — outside any real .github/workflows
directory and not .yml/.yaml — so the github-actions ecosystem never
scans them. No Dependabot config can reach those files.

The evidence is in this repo's own history: #157 is the only Dependabot pull
request base has ever received, and it touched .github/workflows/build.yaml
and nothing else, while the same pins in the templates went stale.

Dependabot does handle the pins it can see, including SHA pins that point at
untagged main commits — #157 bumped actions-ext/rust/setup between two
such commits. So .github/workflows/build.yaml is covered already; it just
moves on the monthly cadence.

This adds a script plus a workflow that resolves each actions-ext repo's
current main and re-pins every reference, .jinja files included, opening a
PR when anything moved.

Triggers: weekly cron, workflow_dispatch, and an actions-ext-updated
repository_dispatch.

Locally:

make check-action-pins    # report drift, non-zero exit if stale
make update-action-pins   # rewrite the pins

Not wired up yet: the repository_dispatch trigger is accepted but
nothing sends it. Emitting it from the actions-ext repos on push to main
needs a PAT there, since GITHUB_TOKEN cannot dispatch cross-repo. Until then
the cron and manual triggers cover it.

Also note PRs opened by GITHUB_TOKEN do not trigger on: pull_request
workflows, so the bot's PR will not run template CI on its own.

Dependabot cannot maintain these pins. The template workflows are .jinja
files outside any .github/workflows directory, so it never scans them, and
the pins point at main commits rather than tags, which is all Dependabot
can resolve.

Runs weekly, on demand, or on an actions-ext-updated repository_dispatch,
and opens a PR when any pin has moved. Also available locally as
make update-action-pins / make check-action-pins.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine merged commit 6c70f04 into main Sep 1, 2026
19 checks passed
@timkpaine
timkpaine deleted the tkp/auto-update-action-pins branch September 1, 2026 16:10
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.

1 participant