Skip to content

ci(test): pass PR number through env instead of inline interpolation#91

Merged
benner merged 1 commit into
mainfrom
ci/test-yml-event-number-via-env
May 4, 2026
Merged

ci(test): pass PR number through env instead of inline interpolation#91
benner merged 1 commit into
mainfrom
ci/test-yml-event-number-via-env

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 4, 2026

github.event.number is numeric so the inline ${{ }} expansion was safe in
practice, and coverage-comment.yml already validates NR before use. But
the pattern of dropping GitHub event values straight into a shell line is
the one zizmor and friends warn about — using the env block keeps the
file consistent with the safer convention used elsewhere in the workflow.

github.event.number is numeric so the inline ${{ }} expansion was safe in
practice, and coverage-comment.yml already validates NR before use. But
the pattern of dropping GitHub event values straight into a shell line is
the one zizmor and friends warn about — using the env block keeps the
file consistent with the safer convention used elsewhere in the workflow.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review May 4, 2026 03:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Coverage

Coverage Report (Δ +0.0%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py4710100% 
TOTAL4710100% 

@benner benner merged commit 44bfc35 into main May 4, 2026
9 of 10 checks passed
@benner benner deleted the ci/test-yml-event-number-via-env branch May 4, 2026 03:11
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.

1 participant