Merge rust-bitcoin/rust-bitcoin#7003: Fix creusot cache by running on push to `master`
What changed, and why it matters
This change simply tells GitHub to run the Creusot verification workflow whenever code is pushed to the master branch, in addition to running it on pull requests. The goal is to populate a build cache for the master branch so that future pull requests can reuse it and run faster. There is no change to the actual Bitcoin library code, no bug fix, and no security patch.
No security action needed. This is a CI optimization. Reviewers may verify the workflow trigger does not introduce unintended permissions, but permissions are already set to {} (none).
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies .github/workflows/creusot.yml to add a push trigger for the master branch. The pull request description explains that GitHub Actions caches created in PRs are not shared across other PRs for security reasons, but PRs can restore the cache of the base branch. Running Creusot on pushes to master creates that base-branch cache, improving CI performance for subsequent PRs. The diff only adds four lines of YAML configuration.
Changed components
.github/workflows/creusot.ymlInspect captured patch +4 / −0
### .github/workflows/creusot.yml
@@ -1,6 +1,10 @@
name: Creusot
on:
+ # run on push to master required for proper functioning of the cache
+ push:
+ branches:
+ - master
pull_request:
permissions: {}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.