What changed, and why it matters
This commit adds a new reusable GitHub Actions step that sets environment variables for Bitcoin Core's continuous integration (CI) system. It defines build/cache directories and computes cache hashes from source files. There is no user-facing or network-facing change, and nothing in the diff suggests a security vulnerability or fix.
No security action required. Review as normal CI maintenance if desired.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The new composite action .github/actions/configure-environment/action.yml exports GITHUB_ENV variables used by CI: base directories, ccache/depends paths, SHA-256 hashes of depends/ and ci/test/$FILE_ENV plus test/get_previous_releases.py, and a container name sourced from $FILE_ENV. It is purely CI infrastructure refactoring.
Changed components
.github/actions/configure-environment/action.ymlBitcoin Core CI pipelineInspect captured patch +27 / −0
diff --git a/.github/actions/configure-environment/action.yml b/.github/actions/configure-environment/action.yml
new file mode 100644
index 00000000..aae5016b
--- /dev/null
+++ b/.github/actions/configure-environment/action.yml
@@ -0,0 +1,27 @@
+name: 'Configure environment'
+description: 'Configure CI, cache and container name environment variables'
+runs:
+ using: 'composite'
+ steps:
+ - name: Set CI and cache directories
+ shell: bash
+ run: |
+ echo "BASE_ROOT_DIR=${{ runner.temp }}" >> "$GITHUB_ENV"
+ echo "BASE_BUILD_DIR=${{ runner.temp }}/build" >> "$GITHUB_ENV"
+ echo "CCACHE_DIR=${{ runner.temp }}/ccache_dir" >> $GITHUB_ENV
+ echo "DEPENDS_DIR=${{ runner.temp }}/depends" >> "$GITHUB_ENV"
+ echo "BASE_CACHE=${{ runner.temp }}/depends/built" >> $GITHUB_ENV
+ echo "SOURCES_PATH=${{ runner.temp }}/depends/sources" >> $GITHUB_ENV
+ echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> $GITHUB_ENV
+
+ - name: Set cache hashes
+ shell: bash
+ run: |
+ echo "DEPENDS_HASH=$(git ls-tree HEAD depends "ci/test/$FILE_ENV" | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
+ echo "PREVIOUS_RELEASES_HASH=$(git ls-tree HEAD test/get_previous_releases.py | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
+
+ - name: Get container name
+ shell: bash
+ run: |
+ source $FILE_ENV
+ echo "CONTAINER_NAME=$CONTAINER_NAME" >> "$GITHUB_ENV"
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.