Repository navigation
Pin every action to a commit SHA, and let Dependabot move them - #314
Merged
parawanderer merged 1 commit intoNov 23, 2026
Merged
Conversation
Every `uses:` named a tag, and a tag can be moved to different code after it was reviewed. That is how tj-actions/changed-files reached thousands of repositories. Here a moved tag would run in jobs holding a contents: write token, the release PAT, or the exporter build users type their Apple ID into. Each action is now on the latest release, pinned to the commit its tag points at, with the full version in a trailing comment. Four were major bumps: actions/checkout v4 -> v7 and actions/setup-python v5 -> v7 in macadi-host.yml, astral-sh/setup-uv v5 -> v10 in the three exporter workflows, and softprops/action-gh-release v2 -> v3 in both release workflows. None of the inputs these workflows pass changed; the notes are in the pull request. .github/dependabot.yml checks the github-actions ecosystem weekly and groups every bump into one PR, moving SHAs and comments together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
parawanderer
approved these changes
Nov 23, 2026
parawanderer
left a comment
Owner
There was a problem hiding this comment.
Looks good, thanks for this!
1 of 30 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes audit finding S-03: every
uses:named a tag, and a tag can be moved to point at different code after anyone reviewed it (the tj-actions/changed-files pattern). Here a moved tag would run in jobs that hold acontents: writetoken, the release PAT, the keystore (see the S-02 PR) or the exporter build that users type their Apple ID into.What changes
uses:in all 12 workflows that have one (49 lines;waiting-on-reporter.ymlhas none, and there are no composite actions or local reusable workflows) is now on the latest release of that action, pinned to the full commit SHA its release tag points at, with the exact version in a trailing comment, e.g.uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1. The one commented-outuses:inbuild-release.ymlis pinned the same way, so it's right if anyone uncomments it..github/dependabot.yml: thegithub-actionsecosystem, directory/, weekly, with every action bump grouped into one PR and commits prefixedCI. Dependabot updates the SHA and the version comment together.CONTRIBUTING.md: a paragraph under "What CI runs" saying actions are pinned and how, and that a Dependabot PR only touches.github/, so the build and static checks have to be dispatched against it by hand (AGENTS.md rule 16).3d3c42e5aac5ba805825da76410c181273ba90b1cf430e030ddbb5b0abf93d22962f4752f3646cd99000827ccba6bdab643e8b6fd33ac0654aef833355cc8345863c7cc4c66a329aec7e433d2d1c52a96d4fd22b20465ccc0f7354476588e8df7c9ca0e0d1374f8ac74474200d16ef8ecee22c7ae7a518801db35dd8eee11c5894872e0b383ae6c406cf738d8a0cd651e5b2365bd640854a3fa5dfc70e4875f3(annotated tag, dereferenced to the commit)3ffccacd46053766916f087ce41d627c0b8cf2d1Each "latest" came from
gh api repos/<o>/<r>/releases/latest, checked against the highestvX.Y.Zin the tag list (they agreed for all nine). Each SHA came fromgit/ref/tags/<tag>. Onlysoftprops/action-gh-release's tag is annotated, and it was followed throughgit/tags/<sha>to the commit.Major-version bumps, and what each needed
macadi-host.ymlonly; everything else was already on v7). v5 moved to Node 24, v6 persists credentials to a separate file instead of.git/config, v7 refuses to check out a fork PR underpull_request_target/workflow_runand moved to ESM.macadi-host.ymlruns onpull_request/push/dispatch and passes no inputs. No changes needed.macadi-host.ymlonly). v6 moved to Node 24, v7 removed thepip-installinput. Onlypython-versionis passed. No changes needed.exporter-build-check.yml,macos-exporter-python.yml×2,macos-scripts-python.yml). None of these steps pass inputs, and the venv comes fromuv sync, so:python-versionno longer activates a venv (not used);pyproject-file/uv-fileremoved (not used); defaultcache-dependency-globwidened. No change.server-urlremoved (not used). No change.prune-cachedefaults to false, so caches can get somewhat larger. No change.enable-cache: autonow turns the cache off forrelease,pull_request_targetandworkflow_runevents, against cache poisoning. That coversmacos-exporter-python.yml's release builds, which will now install uv's packages uncached. It's a few seconds slower and it's the behaviour you'd want in a release job, so I left it.build-release.yml,macos-exporter-python.yml). v3.0.0 only moves the runtime to Node 24. The 3.0.x patches add error reporting, Gitea asset replacement, and publishing existing draft releases as prereleases whenprerelease: trueis passed (we don't pass it). The inputs used here (files,name,tag_name,token) are unchanged. No changes needed.Not in scope, noted
adi-on-bionic.ymlhas fourimage:matrix values. They aren't Docker images: they're Android system-image zip URLs from dl.google.com, used as inputs to a job, so there's nothing to SHA-pin here.gradle,pipanduv(audit S-07 and S-06) is a reasonable follow-up. It's left out so this PR stays about actions.Verified
actionlintacross all workflows: nothing new. The only non-shellcheck finding is the existingmacos-15-intelrunner label that this actionlint version doesn't know about.uses:line matches@<40 hex> # vX.Y.Z(grep).macos-scripts-python, uses setup-uv v10), Exporter Build Check (Windows, setup-uv v10), Emulated Mac (host) (macadi-host, the checkout v4→v7 and setup-python v5→v7 bumps), Apple's ADI on bionic (actions/cache, upload/download-artifact), Native stub tests. Run links: Generate APK (Debug) (884 instrumented tests, 0 failed), Static checks, Exporter Tests, Exporter Build Check, Emulated Mac (host), Apple's ADI on bionic, Native stub tests.DebugModeReachesEveryScreenTest("no history row was built"). That's a time-of-day flake already onmain, not this change:AMapWithTagsOnItseeds its report at "now − 2 h", which lands on yesterday when the suite runs between 00:00 and 02:00 in the emulator's time zone (UTC on CI). The same test failed the same way on all three audit branches that night. A rerun of the failed job after 02:00 UTC passed..github/dependabot.ymlparses as YAML. GitHub only validates it on the default branch, so its first real check is after merge.Not verified
build-release.ymlandmacos-exporter-python.ymlrun only on a release (the exporter also on dispatch, but that uploads to an existing release), so softprops v3 and setup-uv v10 in the release path haven't run. I can't create releases. The next release of each is the first run.update-contributors.yml(create-pull-request v8 → v8.1.3, a minor bump) opens a PR when it runs, so I didn't dispatch it.check-gsa-edge.ymlandcheck-adi-libraries.ymlare disabled on my fork (scheduled workflows), and the latter opens issues, so neither was dispatched. Both use only checkout and setup-python, which the runs above exercise.check-gsa-edgeruns on this PR anyway.Maintainer actions
None required. Dependabot version updates start from
dependabot.ymlonce it's onmain. Its PRs will need the build and static checks dispatched by hand, because of the path filters (rule 16).Relationship to the other two PRs
One of three independent PRs from the same audit (S-02, S-03, S-04), each branched from
main. The S-02 PR (#313) rewritesbuild-release.yml(removingsoftprops/action-gh-releasefrom it and adding artifact steps). Whichever of the two merges second needs a trivial rebase onuses:lines in that file only. The S-04 PR doesn't touch workflows.🤖 Generated with Claude Code