Repository navigation
ci: open the SPM checksum pin as a pull request #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
b65d4b4
ci: open the spm checksum pin as a pull request
nullPointerEnjoyer c38a09f
ci: make the spm checksum pin pr idempotent and spoof-proof
nullPointerEnjoyer 8548ce5
ci: verify the pin, checksum the linter, test the script
nullPointerEnjoyer 5262365
ci: verify both pin substitutions and harden the pr guard
nullPointerEnjoyer c360033
ci: rebuild the manifest and validate inputs in the script
nullPointerEnjoyer 532a0f1
ci: handle merged pins and strip the release job token
nullPointerEnjoyer 9e8f002
ci: publish the release before opening the pin pr
nullPointerEnjoyer f3150d9
ci: guard the rewind path and lint every repo script
nullPointerEnjoyer c00bebf
ci: semver the rewind guard and make releases re-runnable
nullPointerEnjoyer b9c3a2e
ci: serialize releases and harden one-sided pin states
nullPointerEnjoyer 9019953
ci: semver the rewind compare and guard release clobbering
nullPointerEnjoyer c54a85c
ci: testable clobber guard and full semver precedence
nullPointerEnjoyer 2cb7c99
ci: shellcheck-quiet the fixture printf escapes
nullPointerEnjoyer 7769016
ci: fail closed on decoys, overflow, and missing state
nullPointerEnjoyer b8e35d1
ci: anchored pin verification and merge-time pin ordering
nullPointerEnjoyer 9ed804d
ci: one semver source, annotation-safe pin-order gate
nullPointerEnjoyer cbf0397
ci: shared pin helpers, block-comment strip, latest flag
nullPointerEnjoyer 5622bb2
ci: indent-tolerant pin verification across the pipeline
nullPointerEnjoyer 23dabe4
ci: shellcheck-quiet the pin-order fixture escapes
nullPointerEnjoyer 9d049e9
ci: shared pin counting, supersede stale pins, gate hardening
nullPointerEnjoyer 1ec0964
ci: shellcheck-quiet the swift interpolation fixture
nullPointerEnjoyer 3a1d9d1
ci: fix supersede jq empty-array row and stub parity
nullPointerEnjoyer 440fa32
ci: fix supersede jq scoping and list-failure handling
nullPointerEnjoyer 5d6d734
ci: aligned pin-state model and decoy-proof extraction
nullPointerEnjoyer 8cc6eea
ci: push-trigger pin-order gate and regex parity check
nullPointerEnjoyer d44553d
ci: trusted-base gate checkout and namespace push trigger
nullPointerEnjoyer 67203c5
ci: fix stale case comment
nullPointerEnjoyer 3e6412a
ci: pin setup node to a real release commit
nullPointerEnjoyer 0401bac
ci: fetch the pr head for the pin gate and refresh guard origin
nullPointerEnjoyer 7d3cb2d
ci: fail the pin diff closed and test the ref read path
nullPointerEnjoyer 1081c41
ci: gate every package swift edit and verify the pinned release
nullPointerEnjoyer ceefb15
ci: test the pin gate as a script and order checks by applicability
nullPointerEnjoyer e427602
ci: keep the pin gate reachable and harden the release staging
nullPointerEnjoyer 6607c4a
ci: tolerate the legacy pin branch and correct release finality
nullPointerEnjoyer 5f65a5f
ci: align gate wording with the trigger surface
nullPointerEnjoyer 8189700
ci: guard the deactivated pin compare and test both supersede paths
nullPointerEnjoyer 96789b5
ci: escape the staged tag annotation and cover deactivated refusals
nullPointerEnjoyer ab24861
ci: cover base pin states and the gate push path
nullPointerEnjoyer 317c277
ci: refuse broken-prefix base pins and scope release finality
nullPointerEnjoyer bc24c00
ci: make the pin gate refuse every mangled base shape
nullPointerEnjoyer 0c1aef2
ci: correct the pin count rationale in the gate
nullPointerEnjoyer b9b43f4
ci: recheck open pin prs after the release branch push
nullPointerEnjoyer a617829
ci: document trigger assumptions and pin state preflight
nullPointerEnjoyer c9bb324
ci: align release base checks with the merge gate
nullPointerEnjoyer 0a32ba4
ci: use whole line anchors in the release base counts
nullPointerEnjoyer 83c812e
ci: exercise the guard against real deactivated states
nullPointerEnjoyer 5fe4eb3
ci: sharpen pin diagnostics and document trigger assumptions
nullPointerEnjoyer 33391f1
ci: anchor base checksum shapes across the release scripts
nullPointerEnjoyer fa68175
ci: triage mangled base checksums at the counts guard
nullPointerEnjoyer f483929
ci: one canonical branch input validation for release scripts
nullPointerEnjoyer 104a96d
ci: cover the gate base version validation
nullPointerEnjoyer 33a2670
ci: check pin diff applicability without a pipe
nullPointerEnjoyer bfc3a3a
ci: skip the pin gate on its own bootstrap pr
nullPointerEnjoyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Lint workflows and scripts | ||
|
|
||
| # Like ci.yml, these branch filters hardcode "main"; workflow triggers | ||
| # cannot use expressions, so a default-branch rename must update them. | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: [".github/workflows/**", "scripts/**"] | ||
| pull_request: | ||
| branches: [main] | ||
| paths: [".github/workflows/**", "scripts/**"] | ||
|
nullPointerEnjoyer marked this conversation as resolved.
Resolved
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: actionlint + shellcheck | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| # The job downloads and runs a third-party binary; keep the | ||
| # token off disk like the release build jobs do. | ||
| persist-credentials: false | ||
| - name: shellcheck repo scripts | ||
| run: git ls-files -z 'scripts/*.sh' | xargs -0 shellcheck | ||
|
nullPointerEnjoyer marked this conversation as resolved.
Resolved
nullPointerEnjoyer marked this conversation as resolved.
Resolved
|
||
| - name: actionlint | ||
| env: | ||
| # SHA-256 of actionlint_1.7.7_linux_amd64.tar.gz, cross-checked | ||
| # against the release's actionlint_1.7.7_checksums.txt. | ||
| ACTIONLINT_SHA256: "023070a287cd8cccd71515fedc843f1985bf96c436b7effaecce67290e7e0757" | ||
| run: | | ||
| curl --proto '=https' --tlsv1.2 -fsSL -o actionlint.tar.gz \ | ||
| https://github.com/rhysd/actionlint/releases/download/v1.7.7/actionlint_1.7.7_linux_amd64.tar.gz | ||
| echo "${ACTIONLINT_SHA256} actionlint.tar.gz" | sha256sum --check --strict | ||
| tar xzf actionlint.tar.gz actionlint | ||
| ./actionlint | ||
| rm -f actionlint actionlint.tar.gz | ||
| - name: Unit-test the release scripts | ||
| run: scripts/release/test-open-spm-pr.sh | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.