ci: remove cargolock_check prebuild workflow
What changed, and why it matters
This commit removes an automated GitHub Actions workflow that posted a reminder comment whenever the Rust dependency lock file (Cargo.lock) changed in a pull request. The team says it is no longer needed because they now use a different tool, cargo-vet, to track dependency reviews directly in the repository. There is no change to the actual firmware code, device behavior, or cryptographic operations.
No security action required. Treat as routine CI maintenance. If reviewing independently, verify that `cargo-vet` and `audits.toml` are indeed in use and that the supply-chain review process remains effective, but that is outside the scope of this commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes the cargolock_check job from .github/workflows/prebuild.yml. That job previously detected changes to core/embed/rust/Cargo.lock on non-main pull requests and left a bot comment reminding reviewers to update an external Notion page. The commit message states the check is superseded by cargo-vet, with reviews tracked in audits.toml inside the repo. No source code, build scripts, dependencies, or lock files are modified.
Changed components
.github/workflows/prebuild.ymlInspect captured patch +0 / −38
diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml
index e1fd38b2..db2f1af0 100644
--- a/.github/workflows/prebuild.yml
+++ b/.github/workflows/prebuild.yml
@@ -15,9 +15,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
-env:
- CARGOLOCK_COMMENT: Looks like you changed `Cargo.lock`. Please make sure to review the dependencies and update [internal version list](https://www.notion.so/satoshilabs/Rust-dependencies-a9cc6e8dab934def8eb27896c001e6e2).
-
jobs:
block-fixup:
name: Block fixup
@@ -111,38 +108,3 @@ jobs:
- uses: ./.github/actions/environment
- name: "Check release commit message format"
run: ./ci/check_release_commit_messages.sh
-
- # Warn if core/embed/rust/Cargo.lock changed
- cargolock_check:
- name: Cargo.lock check
- if: ${{ github.ref != 'main' && github.event_name == 'pull_request' }}
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout@v6.0.2
- with:
- fetch-depth: 0
- ref: ${{ github.event.pull_request.head.sha }}
-
- - name: Ask git
- run: |
- git diff --exit-code origin/${{ github.base_ref }}...HEAD -- core/embed/rust/Cargo.lock || echo cargo_modified=1 > $GITHUB_ENV
- cat $GITHUB_OUTPUT
-
- - name: Find Comment
- uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # peter-evans/find-comment@v4
- if: ${{ env.cargo_modified == '1' }}
- id: fc
- with:
- issue-number: ${{ github.event.pull_request.number }}
- comment-author: 'github-actions[bot]'
- body-includes: cargolock-comment-${{ github.workflow }}
-
- - name: Create comment
- uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # peter-evans/create-or-update-comment@v5
- if: ${{ env.cargo_modified == '1' && steps.fc.outputs.comment-id == '' }}
- with:
- issue-number: ${{ github.event.pull_request.number }}
- body: |
- <!-- cargolock-comment-${{ github.workflow }} -->
- ${{ env.CARGOLOCK_COMMENT }}
- edit-mode: replace
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.