ci: gha: Set debug_pull_request_number_str annotation
What changed, and why it matters
This commit adds a harmless debug annotation to Bitcoin Core's GitHub Actions CI workflow. It prints the pull request number as a machine-readable notice during CI runs, which helps link check runs back to their pull requests. There is no security issue here.
No action required. This is a benign CI-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds a new step in .github/workflows/ci.yml that emits a GitHub Actions ::notice annotation titled debug_pull_request_number_str containing the pull request number when the workflow is triggered by a pull_request event. This is purely informational metadata used for CI/debugging purposes. It does not modify build logic, secrets handling, permissions, or any executable code.
Changed components
.github/workflows/ci.ymlInspect captured patch +8 / −0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1c69cc54..0b9e5855 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -35,6 +35,14 @@ jobs:
outputs:
provider: ${{ steps.runners.outputs.provider }}
steps:
+ - name: Annotate with pull request number
+ # This annotation is machine-readable and can be used to assign a check
+ # run to its corresponding pull request. Running in one check run is
+ # sufficient for each check suite.
+ run: |
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
+ echo "::notice title=debug_pull_request_number_str::${{ github.event.number }}"
+ fi
- id: runners
run: |
if [[ "${REPO_USE_CIRRUS_RUNNERS}" == "${{ github.repository }}" ]]; then
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.