ci: fix OOM in artifact upload and update actions to v4
What changed, and why it matters
This commit only updates GitHub Actions configuration files. It upgrades checkout actions from v3 to v4, disables compression on a fuzzing corpus artifact upload to avoid running out of memory, and ensures one workflow fetches the full git history. There are no code changes affecting the rust-lightning software itself or its security.
No security action required. Treat as routine CI maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is limited to four GitHub Actions workflow YAML files. Changes include: (1) actions/checkout@v3 → v4 in audit.yml, ldk-node-integration.yml; (2) actions/checkout@v4 already present in semver.yml plus adding fetch-depth: 0; (3) adding compression-level: 0 to the upload-artifact step for hfuzz-corpus in build.yml. No Rust source, tests, dependencies, or cryptographic logic is modified.
Changed components
.github/workflows/audit.yml.github/workflows/build.yml.github/workflows/ldk-node-integration.yml.github/workflows/semver.ymlInspect captured patch +6 / −3
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index e617573..790fd0f 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -11,7 +11,7 @@ jobs:
issues: write
checks: write
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7d0a81e..6d51279 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -250,6 +250,7 @@ jobs:
with:
name: hfuzz-corpus
path: fuzz/hfuzz_workspace
+ compression-level: 0
linting:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ldk-node-integration.yml b/.github/workflows/ldk-node-integration.yml
index 446abd4..8ca66b7 100644
--- a/.github/workflows/ldk-node-integration.yml
+++ b/.github/workflows/ldk-node-integration.yml
@@ -12,11 +12,11 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
path: rust-lightning
- name: Checkout LDK Node
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
repository: lightningdevkit/ldk-node
path: ldk-node
diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml
index de10e56..0e19680 100644
--- a/.github/workflows/semver.yml
+++ b/.github/workflows/semver.yml
@@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
- name: Install Rust stable toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
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.