Repository navigation
chore(ci): pin actions through cdkactions 2.2.0 and sync Dependabot bumps - #12
Draft
martinjlowm wants to merge 1 commit into
Draft
martinjlowm wants to merge 1 commit into
martinjlowm wants to merge 1 commit into
Conversation
…umps .github/cdk now depends on @factbird/cdkactions and -cli ^2.2.0, and main.ts builds each step from a typed action pinned with `.pinned(sha, version)`, so the synth checks every tag against its commit: - actions/checkout v7.0.1 3d3c42e5aac5ba805825da76410c181273ba90b1 - DeterminateSystems/determinate-nix-action v3.23.1 d0c908e6cbe9f89f36ed8205a3ab6f092636916a - DeterminateSystems/update-flake-lock v29 da03c0f078bc4b2c37ee4f7e072d34bf8f188bb3 - actions/setup-node v6.5.0 249970729cb0ef3589644e2896645e5dc5ba9c38 The typed checkout and update-flake-lock steps need an `id`, which the update-nixpkgs workflow now carries. A DependabotActionPinSync workflow carries Dependabot's github-actions bumps from the generated YAML back into main.ts, so Dependabot updates GitHub Actions again. Its push job needs the org's APP_ID and APP_PEM Dependabot secrets, which do not reach a public repository until someone adds them to devkit.
Member
Author
Merge dangerDoor: two-way. Reverting the PR restores cdkactions 2.1.2 with plain Blast radius: local. The update-nixpkgs workflow keeps the same Expand for what I ran and what stays unverified
Made with ❤️ by Claude (Opus 5.5) |
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.
Prerequisite: the
pushjob of the new pin-sync workflow needs theorg's
APP_IDandAPP_PEMDependabot secrets, which reach private andinternal repositories only. Until someone adds them to devkit, that job
fails on every Dependabot github-actions PR.
The action pins in
.github/cdk/main.tsmoved only by hand, andDependabot's github-actions updates were turned off because the next
synth reverted them.
Now,
.github/cdkuses@factbird/cdkactions2.2.0:.pinned(sha, version), andthe synth fails when a tag no longer points at its commit.
DependabotActionPinSyncworkflow carries Dependabot's SHA bumps from.github/workflowsback intomain.ts, so the github-actions ecosystemis back in
.github/dependabot.yml, weekly and grouped.3d3c42e5aac5ba805825da76410c181273ba90b1d0c908e6cbe9f89f36ed8205a3ab6f092636916ada03c0f078bc4b2c37ee4f7e072d34bf8f188bb3249970729cb0ef3589644e2896645e5dc5ba9c38The pin-sync workflow also uses the commits cdkactions itself pins for
create-github-app-token, upload-artifact and download-artifact.
Mind that synth writes those library pins from cdkactions, not from
main.ts, so a Dependabot bump to an action the pin-sync workflow uses,checkout included, fails its "Check the source reproduces the workflows"
step until cdkactions releases the new pin.
Closes #11
Made with ❤️ by Claude (Opus 5.5)