You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bootstrap): refuse non-HTTPS redirects when fetching mise - #216
scripts/bootstrap.sh fetched the mise release with curl --location, which follows redirects to any protocol. A redirect could downgrade the download to plain HTTP. This adds --proto '=https' --tlsv1.2 so curl refuses that. The SHA-256 check still guards the archive itself.
SonarCloud flags this as shell:S6506 on gitbot-fleet's vendored copy (bots/echidnabot/scripts/bootstrap.sh), where it fails the main quality gate. The copy there is pinned to this repo by FLEET-SYNC.json, so the fix lands here first and gitbot-fleet re-pins afterwards.
Verification
bash -n scripts/bootstrap.sh passes.
bash tests/dev-tools.sh exits 0.
With the new flags, the real download (mise-v2026.10.6-linux-x64.tar.gz) still succeeds: HTTP 200 after the redirect to GitHub's release-asset host.
Also: stale actions.lock entries
governance / Actions lockfile verify failed on this PR independently of the curl change. Seven workflows (codeql, governance, hypatia-scan, mirror, rust-ci, scorecard, secret-scanner) now hold only job-level reusable calls, but actions.lock still bound each one to hyperpolymath/standards@740c9d7, which no uses: line names. A second commit records each of them as [] and drops the 14 dependency entries that only that pin reached.
gh actions-lock wasn't available where this was made, so the entries were removed by hand and the CI verifier is the check. The owner approved this exception to the "lockfiles are tool-owned" rule for this PR. If you'd rather regenerate the file with the tool, that replaces this commit.
Review was skipped as selected files did not have any reviewable changes.
Files ignored due to path filters: 1
.github/workflows/actions.lock is excluded by !**/*.lock
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 544974dc-8e5d-4f3c-ab60-a3776404725d
Commits
Reviewing files that changed from the base of the PR and between f0f8f6f and 3121dac.
Files ignored due to path filters: 1
.github/workflows/actions.lock is excluded by !**/*.lock
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Security
Bootstrap downloads now require HTTPS and TLS 1.2 or later. Retry and timeout settings remain unchanged.
The mise download in scripts/bootstrap.sh now restricts curl to HTTPS and requires TLS 1.2 or later. The existing retry and timeout options remain unchanged.
Changes: Bootstrap download
Layer / File(s)
Summary
Curl transport requirements scripts/bootstrap.sh
The mise download now uses HTTPS and requires TLS 1.2 or later. Retry and timeout settings remain unchanged.
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the mise fetch in scripts/bootstrap.sh now refuses non-HTTPS redirects. The raw summary confirms the curl call is restricted to HTTPS and TLS 1.2 or later. The convent…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description matches the changeset. It explains that scripts/bootstrap.sh gains curl --proto '=https' --tlsv1.2 to stop redirects from downgrading the mise download to plain HTTP. It also gives the…
Full details: Title check
Explanation
The title names the main change: the mise fetch in scripts/bootstrap.sh now refuses non-HTTPS redirects. The raw summary confirms the curl call is restricted to HTTPS and TLS 1.2 or later. The conventional-commit prefix 'fix(bootstrap)' matches the scope of the change. The title is specific and concise.
Full details: Description check
Explanation
The description matches the changeset. It explains that scripts/bootstrap.sh gains curl --proto '=https' --tlsv1.2 to stop redirects from downgrading the mise download to plain HTTP. It also gives the SonarCloud rule shell:S6506 as the motivation, lists verification steps, and covers a separate actions.lock cleanup commit. The description is specific and on-topic, so it passes.
Finishing Touches
Fix failing CI checks
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: dfffc3cd-8f78-411c-993f-da68ab07d952
Commits
Reviewing files that changed from the base of the PR and between 7a5b8c4 and 90b0753.
Files selected for processing: 1
scripts/bootstrap.sh
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
##[group]Run set -uo pipefail
�[36;1mset -uo pipefail�[0m
�[36;1m# Stage the gate, the verifier and the exemption ledger. When THIS�[0m
�[36;1m# repository is standards, its own working tree already holds all�[0m
�[36;1m# three (self-lint); every other caller uses the pinned checkout.�[0m
�[36;1mif [ "${GITHUB_REPOSITORY_ID:-}" = "1116521501" ] || [ "$GITHUB_REPOSITORY" = hyperpolymath/standards ] || [ "$GITHUB_REPOSITORY" = metadatastician/standards ]; then�[0m
�[36;1m SRC=scripts�[0m
�[36;1m LEDGERSRC=.machine_readable�[0m
�[36;1m echo "Using this repository's own gate + verifier + ledger (standards self-lint)."�[0m
�[36;1melse�[0m
�[36;1m SRC=.standards-lock/scripts�[0m
�[36;1m LEDGERSRC=.standards-lock/.machine_readable�[0m
�[36;1mfi�[0m
�[36;1mfor f in check-actions-lock-gate.sh update-actions-lock.sh; do�[0m
�[36;1m if [ ! -f "$SRC/$f" ]; then�[0m
�[36;1m echo "::error::actions-lock gate: $f not found in $SRC (pinned standards checkout failed?)"�[0m
�[36;1m exit 1�[0m
�[36;1m fi�[0m
�[36;1m cp "$SRC/$f" "$RUNNER_TEMP/$f"�[0m
�[36;1mdone�[0m
�[36;1m# A MISSING ledger must not silently exempt everyone, nor silently�[0m
�[36;1m# exempt no one. Stage an empty file and let the gate below print�[0m
�[36;1m# the denominator it actually read — a skip is not a pass.�[0m
�[36;1mif [ -f "$LEDGERSRC/lock-allow.txt" ]; then�[0m
�[36;1m cp "$LEDGERSRC/lock-allow.txt" "$RUNNER_TEMP/lock-allow.txt"�[0m
�[36;1melse�[0m
�[36;1m echo "::warning::actions-lock exemption ledger not found; treating it as EMPTY (no repo is exempt)."�[0m
�[36;1m : > "$RUNNER_TEMP/lock-allow.txt"�[0m
�[36;1mfi�[0m
�[36;1mrm -rf .standards-lock�[0m
�[36;1m�[0m
�[36;1m# ONE implementation of the lock/pin predicate, not two.�[0m
�[36;1m#�[0m
�[36;1m# The gate used to live inside workflow-lint with its own inline copy�[0m
�[36;1m# of the logic. That copy matched `^[[:space:]]+uses:` — with no�[0m
�[36;1m# `-?` — so it never saw `- uses: foo@v1`, the co...
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.
What Enabling Code Scanning Means:
The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.
For more information about GitHub Code Scanning, check out the documentation.
Dependency audit fails here, but not because of this PR. It already fails on main at 7a5b8c4, and this PR does not change Cargo.lock. cargo-audit reports 4 vulnerabilities in the locked dependencies: RUSTSEC-2026-0538, -0544, -0592 and -0594, in cookie, libz-sys, quinn-udp and url. It also gives 2 warnings, for chrono and rustix. A lockfile bump belongs in a separate PR.
curl --location followed redirects to any protocol, so a redirect could
downgrade the release download to plain HTTP (SonarCloud shell:S6506).
Restrict curl to HTTPS with TLS 1.2 or later. The SHA-256 check still
guards the archive itself.
codeql, governance, hypatia-scan, mirror, rust-ci, scorecard and
secret-scanner now hold only job-level reusable calls (metadatastician
/standards and proven-cicd-and-workflows), but actions.lock still bound
each to metadatastician/standards@740c9d7, which no uses: line names. The
governance "Actions lockfile verify" gate fails on all seven.
Record each as [] (the reusables-only form) and drop the fourteen
dependency entries that only that stale pin reached.
gh actions-lock was not available where this was made, so the entries
were removed by hand; the CI verifier is the check.
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
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.
Summary
scripts/bootstrap.shfetched the mise release withcurl --location, which follows redirects to any protocol. A redirect could downgrade the download to plain HTTP. This adds--proto '=https' --tlsv1.2so curl refuses that. The SHA-256 check still guards the archive itself.SonarCloud flags this as
shell:S6506on gitbot-fleet's vendored copy (bots/echidnabot/scripts/bootstrap.sh), where it fails the main quality gate. The copy there is pinned to this repo byFLEET-SYNC.json, so the fix lands here first and gitbot-fleet re-pins afterwards.Verification
bash -n scripts/bootstrap.shpasses.bash tests/dev-tools.shexits 0.mise-v2026.10.6-linux-x64.tar.gz) still succeeds: HTTP 200 after the redirect to GitHub's release-asset host.Also: stale actions.lock entries
governance / Actions lockfile verifyfailed on this PR independently of the curl change. Seven workflows (codeql,governance,hypatia-scan,mirror,rust-ci,scorecard,secret-scanner) now hold only job-level reusable calls, butactions.lockstill bound each one tohyperpolymath/standards@740c9d7, which nouses:line names. A second commit records each of them as[]and drops the 14 dependency entries that only that pin reached.gh actions-lockwasn't available where this was made, so the entries were removed by hand and the CI verifier is the check. The owner approved this exception to the "lockfiles are tool-owned" rule for this PR. If you'd rather regenerate the file with the tool, that replaces this commit.Generated by Claude Code