# BUILDKITE\_GITHUB\_MAIN\_BRANCH env var

**URL:** <https://forum.buildkite.community/t/buildkite-github-main-branch-env-var/1275>\
**Category:** Features Requests\
**Created:** [October 8, 2020, 11:24pm UTC](https://forum.buildkite.community/t/buildkite-github-main-branch-env-var/1275 "2020-10-08T23:24:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickatsegment](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nickatsegment](https://forum.buildkite.community/u/nickatsegment)\
**Post date:** [October 8, 2020, 11:24pm UTC](https://forum.buildkite.community/t/buildkite-github-main-branch-env-var/1275/1 "2020-10-08T23:24:01Z")

</div>

Now that Github calls the main branch `main` by default, it’s pretty unsafe to assume the main branch is `master`. It would be nice if this were populated into a variable or something. Namely for branch filtering.
