Skip to content

ci: harden workflow with SHA pins, permissions, timeouts, and dependabot#352

Merged
h4sh5 merged 1 commit into
libfuse:masterfrom
abhinavagarwal07:ci-hygiene
May 19, 2026
Merged

ci: harden workflow with SHA pins, permissions, timeouts, and dependabot#352
h4sh5 merged 1 commit into
libfuse:masterfrom
abhinavagarwal07:ci-hygiene

Conversation

@abhinavagarwal07
Copy link
Copy Markdown
Collaborator

Pin all GitHub Actions to Node 24-capable full commit SHAs (checkout v6.0.2, setup-python v6.2.0, upload-artifact v7.0.1). Add least-privilege permissions (contents: read), concurrency group with cancel-in-progress, and dependabot config for weekly action updates.

Pin runner to ubuntu-24.04 and Python to 3.12 for reproducibility. Add explicit SSH daemon startup with connectivity preflight. Hard-fail FUSE preflight so the job stops immediately if /dev/fuse or fusermount3 is missing. Add pytest --timeout=300, --maxfail=99 (overrides the -x in pytest.ini so CI collects all failures), and JUnit XML output. Upload test results and meson logs as artifacts.

This is the foundation PR — later PRs assume these defaults. Pinning actions to SHAs protects against supply-chain attacks and surprise breakage from upstream tag mutations; Node 24-capable versions avoid the September 2026 Node 20 removal deadline. The strict FUSE preflight prevents CI from going green with silently skipped tests.

- Pin all actions to Node 24-capable full SHAs (checkout v6.0.2, setup-python v6.2.0, upload-artifact v7.0.1)
- Add least-privilege permissions (contents: read) and concurrency cancellation
- Pin python-version to 3.12, pin runner to ubuntu-24.04
- Add pytest --timeout=300, --maxfail=99 (overrides pytest.ini -x), JUnit XML output
- Add explicit SSH setup with sshd start and connectivity preflight
- Hard-fail FUSE preflight (job stops if /dev/fuse or fusermount3 missing)
- Upload test results and meson logs as artifacts
- Add dependabot config for weekly action version updates
@abhinavagarwal07 abhinavagarwal07 marked this pull request as ready for review May 19, 2026 05:35
@h4sh5 h4sh5 merged commit 88692b7 into libfuse:master May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants