feat(actions): centrally-pinned wrappers for checkout, aws, opentofu - #37
Merged
Conversation
Wrap the third-party actions used most across the personal repos in thin composite actions that pin the upstream SHA in one place, so a version bump is a single edit here that every repo picks up via @main. - add checkout, aws-credentials, setup-opentofu composite wrappers - setup-node-npm now consumes the checkout wrapper (checkout SHA lives once) - dogfood the wrappers in node-ci, security-scan, cloudflare-pages-deploy so the hub's own workflows carry no duplicated raw action SHAs cloudflare-pages-deploy now installs via setup-node-npm, moving it onto the hardened npm ci baseline (--ignore-scripts --no-audit --no-fund).
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.
What
Wraps the third-party actions used most across the personal repos in thin composite actions, each pinning the upstream SHA in one place in this hub. A version bump becomes a single edit here that every repo picks up via
@main.Based on a survey of all 11 personal repos, the most-used third-party actions are:
actions/checkout(34),actions/setup-node(9, already wrapped),configure-aws-credentials(8),setup-opentofu(6).Changes
.github/actions/checkout->actions/checkoutv7.0.1.github/actions/aws-credentials->aws-actions/configure-aws-credentialsv6.2.3.github/actions/setup-opentofu->opentofu/setup-opentofuv2.0.2setup-node-npmnow consumes thecheckoutwrapper, soactions/checkoutis pinned in exactly one file.node-ci.yml: each of the 5 check jobs collapses checkout + setup-node + npm ci intosetup-node-npm@main; actionlint job uses thecheckoutwrapper.security-scan.yml: both jobs use thecheckoutwrapper.cloudflare-pages-deploy.yml: usessetup-node-npm+aws-credentialswrappers.Behavior notes
cloudflare-pages-deploy.ymlpreviously ran plainnpm ci; viasetup-node-npmit now uses the hardened baselinenpm ci --ignore-scripts --no-audit --no-fund, matching the rest of the hub.setup-opentofuwrapper pins v2.0.2; consumer repos currently on v1.0.8 / v2 will move to v2.0.2 when they adopt the wrapper.Verification
actionlintpasses clean.action.ymlfiles parse as valid YAML.