Skip to content

chore(ci): remove dead env vars from circleci-failure-summary-comment.yml#45972

Open
XciD wants to merge 2 commits into
mainfrom
ci/remove-dead-env-vars-circleci-summary
Open

chore(ci): remove dead env vars from circleci-failure-summary-comment.yml#45972
XciD wants to merge 2 commits into
mainfrom
ci/remove-dead-env-vars-circleci-summary

Conversation

@XciD
Copy link
Copy Markdown
Member

@XciD XciD commented May 14, 2026

Summary

.github/workflows/circleci-failure-summary-comment.yml declared three env vars at the comment job level:

env:
  TARGET_BRANCH: ${{ github.event.pull_request.head.ref }}
  TARGET_SHA:    ${{ github.event.pull_request.head.sha }}
  PR_NUMBER:     ${{ github.event.pull_request.number }}

None of them are referenced:

  • TARGET_BRANCH and TARGET_SHA are never used by any step in the job.
  • PR_NUMBER is re-declared as a step-local env in every step that needs it (lines 164, 198, 234), so the job-level binding does nothing.

Drop the whole env: block. No behavior change.

Closes #45968 (the hf-security-analysis bot proposed to rename these vars; the right fix is to delete them).

….yml

`TARGET_BRANCH` and `TARGET_SHA` were declared at the job level but never
referenced by any subsequent step. `PR_NUMBER` was also declared at the
job level but every step that needs it re-declares its own step-local
`PR_NUMBER: ${{ github.event.pull_request.number }}` env, so the
job-level binding was equally unused.

Drop the entire job-level `env:` block. No behavior change.
@XciD XciD requested a review from ArthurZucker May 14, 2026 07:15
@XciD XciD marked this pull request as ready for review May 14, 2026 07:15
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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.

3 participants