Skip to content

fix: sanitize GITHUB_ACTOR in EC2 tags to handle bot users#21240

Merged
randyquaye merged 1 commit intonextfrom
rq/fix-github-actor-tag-sanitize
Mar 9, 2026
Merged

fix: sanitize GITHUB_ACTOR in EC2 tags to handle bot users#21240
randyquaye merged 1 commit intonextfrom
rq/fix-github-actor-tag-sanitize

Conversation

@randyquaye
Copy link
Contributor

Summary

  • Strip [ and ] from GITHUB_ACTOR before using it as an AWS EC2 tag value
  • Bot actors like aztec-bot[bot] contain square brackets which are invalid in AWS tag values, causing aws ec2 create-tags to fail

Test plan

  • CI passes (triggered by a non-bot actor)
  • Verify bot-triggered runs (e.g. from aztec-bot[bot]) no longer fail on create-tags

Bot actors like `user[bot]` contain square brackets which are invalid
in AWS EC2 tag values, causing `aws ec2 create-tags` to fail.
@randyquaye randyquaye requested a review from charlielye as a code owner March 9, 2026 02:06
@randyquaye randyquaye enabled auto-merge March 9, 2026 10:27
@randyquaye randyquaye added this pull request to the merge queue Mar 9, 2026
Merged via the queue into next with commit 23eed2d Mar 9, 2026
18 checks passed
@randyquaye randyquaye deleted the rq/fix-github-actor-tag-sanitize branch March 9, 2026 19:27
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.

2 participants