-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): pin actions to immutable commit SHAs #41
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,11 +13,11 @@ concurrency: | |
| jobs: | ||
| check: | ||
| name: Check | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
|
|
@@ -33,7 +33,7 @@ jobs: | |
| fi | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
|
|
@@ -64,19 +64,19 @@ jobs: | |
| # limit stays at the default 4 so peak load per runner is unchanged. | ||
| test: | ||
| name: Test | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
|
|
@@ -94,23 +94,23 @@ jobs: | |
| # isolation that flag buys is preserved exactly. | ||
| test_server: | ||
| name: Test Server ${{ matrix.shard }} | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| shard: [1, 2, 3] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
|
|
@@ -150,7 +150,7 @@ jobs: | |
|
|
||
| - name: Upload thread transfer result | ||
| if: always() && steps.transfer_budget.outputs.present == 'true' | ||
| uses: actions/upload-artifact@v7 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: thread-transfer-results | ||
| path: ${{ runner.temp }}/thread-transfer-result.json | ||
|
|
@@ -161,19 +161,19 @@ jobs: | |
| # for checks that take under 3s, on the critical path of every PR. | ||
| rust: | ||
| name: Rust | ||
| runs-on: blacksmith-4vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-4vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rust pin drops toolchain channelHigh Severity Pinning Additional Locations (2)Reviewed by Cursor Bugbot for commit 1b32eb8. Configure here. |
||
| with: | ||
| components: rustfmt | ||
|
|
||
|
|
@@ -189,7 +189,7 @@ jobs: | |
| # the diff cannot be resolved, the lint runs. | ||
| mobile_native_changes: | ||
| name: Mobile Native Changes | ||
| runs-on: blacksmith-2vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-2vcpu-ubuntu-2404 | ||
| timeout-minutes: 5 | ||
| permissions: | ||
| contents: read | ||
|
|
@@ -267,19 +267,19 @@ jobs: | |
| # Skip only on an explicit "no": a gate job that failed or errored leaves the | ||
| # output empty, and that must run the lint rather than silently skip it. | ||
| if: ${{ !cancelled() && needs.mobile_native_changes.outputs.changed != 'false' }} | ||
| runs-on: blacksmith-6vcpu-macos-26 | ||
| runs-on: macos-26 # blacksmith-6vcpu-macos-26 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
|
|
@@ -295,19 +295,19 @@ jobs: | |
|
|
||
| release_smoke: | ||
| name: Release Smoke | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust toolchain SHA pin is unsafe
Medium Severity
Pinning
dtolnay/rust-toolchainto astableref SHA without atoolchaininput is unsafe. That action force-pushesstable, so GitHub eventually garbage-collects the commit and the action cannot be resolved. The rust CI job, macOS preview, and release builds then fail, and there is norust-toolchain.tomlto fall back on.Additional Locations (2)
.github/workflows/desktop-macos-preview.yml#L65-L68.github/workflows/release.yml#L460-L463Reviewed by Cursor Bugbot for commit 496207d. Configure here.