ci: move stable-version to repo root (required for cargo-rbmt)
What changed, and why it matters
This commit simply moves a file called 'stable-version' from one folder to another within the project's CI configuration. The file contains a Rust compiler version number used by automated checks. There is no change to the project's actual Bitcoin code, no security fix, and no vulnerability introduced.
No security action needed. This is a benign CI path change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change relocates the stable-version reference file from .github/workflows/stable-version to the repository root (stable-version) and updates two GitHub Actions workflows to read from the new path. The file content (1.93.1) is unchanged. This is a CI/maintenance refactor to support cargo-rbmt.
Changed components
.github/workflows/cron-weekly-update-stable.yml.github/workflows/semver-checks.ymlstable-versionInspect captured patch +4 / −4
diff --git a/.github/workflows/cron-weekly-update-stable.yml b/.github/workflows/cron-weekly-update-stable.yml
index 4c2c3f14..62732404 100644
--- a/.github/workflows/cron-weekly-update-stable.yml
+++ b/.github/workflows/cron-weekly-update-stable.yml
@@ -22,7 +22,7 @@ jobs:
# Extract the version of the compiler dtolnay/rust-toolchain gives us.
STABLE_VERSION=$(rustc --version | sed -ne 's/^rustc //p' | cut -d ' ' -f1)
# Update the stable version in the reference file.
- echo "${STABLE_VERSION}" > ./.github/workflows/stable-version
+ echo "${STABLE_VERSION}" > ./stable-version
echo "stable_version=${STABLE_VERSION}" >> $GITHUB_ENV
# If somehow the stable version has not changed. In this case don't make an empty PR.
if ! git diff --exit-code > /dev/null; then
diff --git a/.github/workflows/semver-checks.yml b/.github/workflows/semver-checks.yml
index 2352b9ef..ef0d6ea0 100644
--- a/.github/workflows/semver-checks.yml
+++ b/.github/workflows/semver-checks.yml
@@ -23,7 +23,7 @@ jobs:
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
- name: "Select stable-version"
run: |
- rustup default $(cat ./.github/workflows/stable-version)
+ rustup default $(cat ./stable-version)
- name: "Install cargo-binstall"
uses: cargo-bins/cargo-binstall@b3f755e95653da9a2d25b99154edfdbd5b356d0a # v1.15.10
- name: "Binstall pinned cargo-semver-checks"
@@ -65,7 +65,7 @@ jobs:
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
- name: "Select stable-version"
run: |
- rustup default $(cat ./.github/workflows/stable-version)
+ rustup default $(cat ./stable-version)
- name: "Install cargo-binstall"
uses: cargo-bins/cargo-binstall@b3f755e95653da9a2d25b99154edfdbd5b356d0a # v1.15.10
- name: "Binstall pinned cargo-semver-checks"
diff --git a/.github/workflows/stable-version b/.github/workflows/stable-version
deleted file mode 100644
index d8ac93be..00000000
--- a/.github/workflows/stable-version
+++ /dev/null
@@ -1 +0,0 @@
-1.93.1
diff --git a/stable-version b/stable-version
new file mode 100644
index 00000000..d8ac93be
--- /dev/null
+++ b/stable-version
@@ -0,0 +1 @@
+1.93.1
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.