Skip to content

Fix NUKE_CERT variables to be case insensitive in bash#536

Open
bjorkert wants to merge 1 commit intodevfrom
fix/nuke-certs-case-insensitive
Open

Fix NUKE_CERT variables to be case insensitive in bash#536
bjorkert wants to merge 1 commit intodevfrom
fix/nuke-certs-case-insensitive

Conversation

@bjorkert
Copy link
Contributor

Summary

  • Use ${VAR,,} bash parameter expansion for case-insensitive comparisons instead of introducing _LC helper variables (supersedes make the NUKE_CERT variables case insensitive #528)
  • Fix bug where FORCE_NUKE_CERTS was compared as the literal string vars.FORCE_NUKE_CERTS instead of the actual variable value
  • Add missing FORCE_NUKE_CERTS=${{ vars.FORCE_NUKE_CERTS }} assignment so bash has access to the variable
  • No changes to the nuke_certs job if: condition since GitHub Actions == is already case-insensitive

Test plan

  • Set ENABLE_NUKE_CERTS to True, TRUE, and true — all should be recognized
  • Set FORCE_NUKE_CERTS to True, TRUE, and true — all should trigger the force warning annotation
  • Set FORCE_NUKE_CERTS to false or unset — no force warning annotation
  • Verify the nuke_certs job still triggers correctly based on the GitHub Actions if: expression

Use ${VAR,,} parameter expansion for case-insensitive comparisons
in bash. Also fix bug where FORCE_NUKE_CERTS was compared as a
literal string instead of a variable value.

The GitHub Actions if: expressions (nuke_certs job) are already
case-insensitive, so no changes needed there.
@bjorkert bjorkert requested a review from marionbarker March 10, 2026 12:18
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